Skip to content

Commit

Permalink
Find installed pping executable under its new name
Browse files Browse the repository at this point in the history
  • Loading branch information
lunkwill42 authored and hmpf committed Mar 7, 2024
1 parent 04c1fa5 commit 7dbda65
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/integration/pping_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ def get_pping_output(timeout=5):
Also asserts that pping shouldn't unexpectedly exit with a zero exitcode.
"""
pping = Path(BINDIR).absolute() / 'pping.py'
assert pping.exists(), "Cannot find pping.py on path"
pping = str(pping)
pping = which("pping")
assert pping, "Cannot find pping in PATH"
cmd = get_root_method() + ["/usr/bin/timeout", str(timeout), pping, "-f"]
try:
output = check_output(cmd, stderr=STDOUT)
Expand Down

0 comments on commit 7dbda65

Please sign in to comment.