Skip to content

Commit

Permalink
lsvmbus: the source of lsvmbus change to use python3
Browse files Browse the repository at this point in the history
  • Loading branch information
LiliDeng committed Sep 20, 2024
1 parent c30811a commit 2f0d56f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lisa/tools/lsvmbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from lisa.tools import Dmesg
from lisa.util import LisaException, find_groups_in_lines

from .ln import Ln
from .python import Python

# segment output of lsvmbus -vv
Expand Down Expand Up @@ -154,11 +153,7 @@ def can_install(self) -> bool:
def _initialize(self, *args: Any, **kwargs: Any) -> None:
self._command = "lsvmbus"
self._vmbus_devices: List[VmBusDevice] = []
cmd_result = self.node.execute("which python", sudo=True)
if 0 != cmd_result.exit_code:
ln = self.node.tools[Ln]
self.node.tools.get(Python)
ln.create_link("/bin/python3", "/usr/bin/python")
self.node.tools.get(Python)

def _check_exists(self) -> bool:
_exists = super()._check_exists()
Expand Down

0 comments on commit 2f0d56f

Please sign in to comment.