From a47c97bb9fd47c2cc82e67c033a0e5ca10ab0357 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Wed, 24 May 2023 17:27:38 +0200 Subject: [PATCH] Tools: continue on coverage test failure --- Tools/scripts/run_coverage.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Tools/scripts/run_coverage.py b/Tools/scripts/run_coverage.py index 4df28eef0d..ee6e4c24a3 100755 --- a/Tools/scripts/run_coverage.py +++ b/Tools/scripts/run_coverage.py @@ -177,11 +177,15 @@ class CoverageRunner(object): test_list = ["Plane", "QuadPlane", "Sub", "Copter", "Helicopter", "Rover", "Tracker", "BalanceBot", "Sailboat"] for test in test_list: self.progress("Running test.%s" % test) - subprocess.run([self.autotest, - "--timeout=" + str(TIMEOUT), - "--debug", - "--no-clean", - "test.%s" % test], check=self.check_tests) + try: + subprocess.run([self.autotest, + "--timeout=" + str(TIMEOUT), + "--debug", + "--no-clean", + "test.%s" % test], check=self.check_tests) + except subprocess.CalledProcessError: + # pass in case of failing tests + pass # TODO add any other execution path/s we can to maximise the actually # used code, can we run other tests or things? Replay, perhaps? self.update_stats()