Skip to content

Commit

Permalink
qt-testrunner: Do not print warning when a logfile is not expected
Browse files Browse the repository at this point in the history
Do not print warning about no errors in logfile, when
a logfile is not expected.

Task-number: QTQAINFRA-5084
Change-Id: I92f94452418738d31936d47362aa6090090af6de
Reviewed-by: Edward Welbourne <[email protected]>
  • Loading branch information
jimis committed Sep 19, 2024
1 parent 0f35b55 commit 6297c03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions util/testrunner/qt-testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def main():
sys.exit(3)

try:
results_file = None
failed_functions = []
if args.parse_xml_testlog: # do not run test, just parse file
failed_functions = parse_log(args.parse_xml_testlog)
Expand All @@ -356,8 +357,9 @@ def main():
sys.exit(0) # PASS

if len(failed_functions) == 0:
L.warning("No failures listed in the XML test log!"
" Did the test CRASH right after all its testcases PASSed?")
if results_file:
L.warning("No failures listed in the XML test log!"
" Did the test CRASH right after all its testcases PASSed?")
continue

cant_rerun = [ f.func for f in failed_functions if f.func in NO_RERUN_FUNCTIONS ]
Expand Down

0 comments on commit 6297c03

Please sign in to comment.