Tools: continue on coverage test failure

This commit is contained in:
Pierre Kancir 2023-05-24 17:27:38 +02:00 committed by Tom Pittenger
parent 135bfac378
commit a47c97bb9f
1 changed files with 9 additions and 5 deletions

View File

@ -177,11 +177,15 @@ class CoverageRunner(object):
test_list = ["Plane", "QuadPlane", "Sub", "Copter", "Helicopter", "Rover", "Tracker", "BalanceBot", "Sailboat"] test_list = ["Plane", "QuadPlane", "Sub", "Copter", "Helicopter", "Rover", "Tracker", "BalanceBot", "Sailboat"]
for test in test_list: for test in test_list:
self.progress("Running test.%s" % test) self.progress("Running test.%s" % test)
subprocess.run([self.autotest, try:
"--timeout=" + str(TIMEOUT), subprocess.run([self.autotest,
"--debug", "--timeout=" + str(TIMEOUT),
"--no-clean", "--debug",
"test.%s" % test], check=self.check_tests) "--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 # TODO add any other execution path/s we can to maximise the actually
# used code, can we run other tests or things? Replay, perhaps? # used code, can we run other tests or things? Replay, perhaps?
self.update_stats() self.update_stats()