Log an error message when something went wrong in run_tests.py.
authorScott Gasch <[email protected]>
Tue, 18 Oct 2022 03:03:56 +0000 (20:03 -0700)
committerScott Gasch <[email protected]>
Tue, 18 Oct 2022 03:03:56 +0000 (20:03 -0700)
tests/run_tests.py

index 301f89436059040ae549a76c3904e19124279648..b46168cb7ee820efe8c590d391253edf9937a691 100755 (executable)
@@ -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