From 655bed65689e5f06eaba45acd499136dac2daab4 Mon Sep 17 00:00:00 2001 From: Dimitrios Apostolou Date: Tue, 3 Sep 2024 21:54:08 +0200 Subject: [PATCH] qt-testrunner: re-run the full test if it crashed Previously it re-ran only the failed tests, if a proper XML logfile was written. But in case of "crash" caused by the watchdog for QTEST_FUNCTION_TIMEOUT, the subsequent tests were not included in the XML logfile, thus those were never run. Fixes: QTQAINFRA-5226 Change-Id: Ib4f0849fa2511bb34365fd901fd53c5a3e3ab293 Reviewed-by: Edward Welbourne --- util/testrunner/qt-testrunner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/testrunner/qt-testrunner.py b/util/testrunner/qt-testrunner.py index 9d60383529b..9bc0d2c4658 100755 --- a/util/testrunner/qt-testrunner.py +++ b/util/testrunner/qt-testrunner.py @@ -349,6 +349,9 @@ def main(): if results_file: failed_functions = parse_log(results_file) + if retcode < 0: + L.warning("CRASH detected, re-running the whole executable") + continue if retcode == 0: if failed_functions: L.warning("The test executable returned success but the logfile"