Skip to content

Commit

Permalink
Print error messages from python tests (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin authored Oct 11, 2024
1 parent 9f31f71 commit 40ba4c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/run_tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def main():
cwd="Tests/Packet++Test",
)
if completed_process.returncode != 0:
print("Error while executing Packet++ tests: " + str(completed_process))
exit(completed_process.returncode)

completed_process = subprocess.run(
Expand All @@ -59,6 +60,7 @@ def main():
cwd="Tests/Pcap++Test",
)
if completed_process.returncode != 0:
print("Error while executing Pcap++ tests: " + str(completed_process))
exit(completed_process.returncode)

finally:
Expand Down
2 changes: 2 additions & 0 deletions ci/run_tests/run_tests_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def main():
shell=True,
)
if completed_process.returncode != 0:
print("Error while executing Packet++ tests: " + str(completed_process))
exit(completed_process.returncode)

skip_tests = ["TestRemoteCapture"] + args.skip_tests
Expand Down Expand Up @@ -162,6 +163,7 @@ def main():
shell=True,
)
if completed_process.returncode != 0:
print("Error while executing Pcap++ tests: " + str(completed_process))
exit(completed_process.returncode)

finally:
Expand Down

0 comments on commit 40ba4c5

Please sign in to comment.