From f38ac532bb171e64d3f1b42b34b9787729cec093 Mon Sep 17 00:00:00 2001 From: Sonia Sharma Date: Wed, 15 Feb 2023 01:43:37 -0800 Subject: [PATCH] lsblk: fix order of install for FreeBSD --- lisa/tools/lsblk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisa/tools/lsblk.py b/lisa/tools/lsblk.py index c2bc0bc0c8..e5640b360d 100644 --- a/lisa/tools/lsblk.py +++ b/lisa/tools/lsblk.py @@ -126,10 +126,10 @@ def can_install(self) -> bool: return True def _install(self) -> bool: - if isinstance(self.node.os, Posix): - self.node.os.install_packages("util-linux") - elif isinstance(self.node.os, FreeBSD): + if isinstance(self.node.os, FreeBSD): self.node.os.install_packages("lsblk") + elif isinstance(self.node.os, Posix): + self.node.os.install_packages("util-linux") else: raise LisaException( f"tool {self.command} can't be installed in distro {self.node.os.name}."