Skip to content

Commit

Permalink
changing the steps to check if netsvc module exists
Browse files Browse the repository at this point in the history
  • Loading branch information
umfranci committed Sep 5, 2024
1 parent 8865aa0 commit 68a9831
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions microsoft/testsuites/network/networksettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,8 @@ def _check_msg_level_change_supported(self, node: Node) -> None:
shell=True,
cwd=node.working_path,
).stdout
node.tools[Chmod].chmod(netvsc_module, "777", sudo=True)
assert node.shell.exists(
PurePosixPath(netvsc_module)
), f"{netvsc_module} doesn't exist."
netvsc_module_exists = node.execute("stat {netvsc_module}", shell=True, sudo=True).exit_code == 0
assert netvsc_module_exists, f"{netvsc_module} doesn't exist."

nm = node.tools[Nm]
msg_level_symbols = nm.get_symbol_table(netvsc_module)
Expand Down

0 comments on commit 68a9831

Please sign in to comment.