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"]
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()