diff options
author | Dimitrios Apostolou <[email protected]> | 2024-09-03 21:54:08 +0200 |
---|---|---|
committer | Dimitrios Apostolou <[email protected]> | 2024-09-19 15:17:23 +0200 |
commit | 655bed65689e5f06eaba45acd499136dac2daab4 (patch) | |
tree | 42027df018c953aa5854582545cb24149d4033a6 | |
parent | 6297c036a4da268536c3d2b80ff94279633b2b8b (diff) |
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 <[email protected]>
-rwxr-xr-x | util/testrunner/qt-testrunner.py | 3 |
1 files changed, 3 insertions, 0 deletions
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" |