Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed May 14, 2024
1 parent 6161ebc commit 66d0561
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/pytests/functional/modules/test_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,12 @@ def test_owner(modules):
"""
test finding the package owning a file
"""
binary = shutil.which("ls")
binary = "/bin/ls"
if not os.path.exists(binary):
binary = "/usr/bin/ls"
if not os.path.exists(binary):
pytest.skip("Neither '/bin/ls' nor '/usr/bin/ls' are present on the system")

ret = modules.pkg.owner(binary)
assert len(ret) != 0

Expand Down

0 comments on commit 66d0561

Please sign in to comment.