From e89f186edc8ffbd9f8d4692a58834eb210dcd47f Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Mon, 17 Oct 2022 20:03:56 -0700 Subject: [PATCH] Log an error message when something went wrong in run_tests.py. --- tests/run_tests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/run_tests.py b/tests/run_tests.py index 301f894..b46168c 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -601,6 +601,10 @@ def main() -> Optional[int]: if config.config['coverage']: code_coverage_report() total_problems = test_results_report(results) + if total_problems > 0: + logging.error( + 'Exiting with non-zero return code %d due to problems.', total_problems + ) return total_problems -- 2.46.0