Skip to content

Commit

Permalink
fixup! Update hardcoded paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Nov 21, 2023
1 parent 1360001 commit 6171742
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration/pping_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ def get_pping_output(timeout=5):
Also asserts that pping shouldn't unexpectedly exit with a zero exitcode.
"""
pping = Path(BINDIR) / 'pping.py'
pping = Path(BINDIR).absolute() / 'pping.py'
assert pping.exists(), "Cannot find pping.py on path"
cmd = get_root_method() + ["/usr/bin/timeout", str(timeout), str(pping), "-f"]
pping = str(pping)
cmd = get_root_method() + ["/usr/bin/timeout", str(timeout), pping, "-f"]
try:
output = check_output(cmd, stderr=STDOUT)
except CalledProcessError as error:
Expand Down

0 comments on commit 6171742

Please sign in to comment.