diff options
author | Dimitrios Apostolou <[email protected]> | 2024-09-03 19:52:14 +0200 |
---|---|---|
committer | Dimitrios Apostolou <[email protected]> | 2024-09-19 15:17:23 +0200 |
commit | 6297c036a4da268536c3d2b80ff94279633b2b8b (patch) | |
tree | 48d91e5e16c3134227746c357ef7015b7d7e83c1 | |
parent | 0f35b55dbbb7d3cddd408a6110886f143b5f7abf (diff) |
qt-testrunner: Do not print warning when a logfile is not expected
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]>
-rwxr-xr-x | util/testrunner/qt-testrunner.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/testrunner/qt-testrunner.py b/util/testrunner/qt-testrunner.py index fa90af89215..9d60383529b 100755 --- a/util/testrunner/qt-testrunner.py +++ b/util/testrunner/qt-testrunner.py @@ -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) @@ -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 ] |