Skip to content

Commit

Permalink
Dump path and pythonpath in test
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Feb 20, 2024
1 parent e8be647 commit b070077
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integration/pping_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b070077

Please sign in to comment.