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 <edward.welbourne@qt.io>
This commit is contained in:
Dimitrios Apostolou 2024-09-03 21:54:08 +02:00
parent 6297c036a4
commit 655bed6568

View File

@ -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"