From 2e6abf515730abba8cba6edea9b7b76172b2b802 Mon Sep 17 00:00:00 2001 From: Morten Brekkevold Date: Thu, 29 Feb 2024 17:16:11 +0000 Subject: [PATCH] Find installed pping executable under its new name --- tests/integration/pping_test.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/integration/pping_test.py b/tests/integration/pping_test.py index 6152e34cfa..8068b6c008 100644 --- a/tests/integration/pping_test.py +++ b/tests/integration/pping_test.py @@ -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)