Skip to content

Commit

Permalink
qt-testrunner: re-run the full test if it crashed
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jimis committed Sep 19, 2024
1 parent 6297c03 commit 655bed6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/testrunner/qt-testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 655bed6

Please sign in to comment.