From b070077e4b61a17066ddb7dede758cbdad85b1f9 Mon Sep 17 00:00:00 2001 From: Hanne Moa Date: Tue, 20 Feb 2024 12:55:16 +0100 Subject: [PATCH] Dump path and pythonpath in test --- tests/integration/pping_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration/pping_test.py b/tests/integration/pping_test.py index 0b2d2083db..1807341ef8 100644 --- a/tests/integration/pping_test.py +++ b/tests/integration/pping_test.py @@ -100,6 +100,12 @@ def get_pping_output(timeout=5): assert pping.exists(), "Cannot find pping.py on path" pping = str(pping) cmd = get_root_method() + ["/usr/bin/timeout", str(timeout), pping, "-f"] + print('PATH:') + for piece in os.environ.get('PATH', '').split(':'): + print(piece) + print('PYTHONPATH:') + for piece in sys.path: + print(piece) try: output = check_output(cmd, stderr=STDOUT) except CalledProcessError as error: