summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2022-04-21 16:30:52 +0200
committerDimitrios Apostolou <jimis@qt.io>2022-04-22 15:39:03 +0200
commit72793ef31d4aae551aed2aaa6cc07fced67379f6 (patch)
tree7d9299b8fdb0b81eda3c314a9e64f07415ac8e5b /util
parent399dbba775d322bb2c7097b17b5795d908f71373 (diff)
Generalize exclusion list
It seems there are some tests in the various Qt modules that skip writing the XML testlog file. If there are good reasons for that (for example test is a custom shellscript) then it should be added to the DUMB_TESTS list. Change-Id: Iffb00e1fda42bb8e7338a94c9320e45900db1bc1 Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'util')
-rwxr-xr-xutil/testrunner/qt-testrunner.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/util/testrunner/qt-testrunner.py b/util/testrunner/qt-testrunner.py
index 71dacbaf07..fff1a0d719 100755
--- a/util/testrunner/qt-testrunner.py
+++ b/util/testrunner/qt-testrunner.py
@@ -106,6 +106,12 @@ VERBOSE_ENV = {
NO_RERUN_FUNCTIONS = {
"initTestCase", "init", "cleanup", "cleanupTestCase"
}
+# The following tests do not write XML log files properly. qt-testrunner will
+# not try to append "-o" to their command-line or re-run failed testcases.
+# Only add tests here if absolutely necessary!
+NON_XML_GENERATING_TESTS = {
+ "tst_selftests", # qtestlib's selftests are using an external test framework (Catch) that does not support -o argument
+}
def parse_args():
@@ -187,10 +193,8 @@ Default flags: --max-repeats 5 --passes-needed 1
L.info("Detected androidtestrunner, test will be handled specially. Detected test basename: %s",
args.test_basename)
- # The qtestlib selftests are implemented using an external test library
- # (Catch), and they don't support the same command-line options.
- if args.test_basename == "tst_selftests":
- L.info("Detected special test not able to generate XML log! Will not repeat individual testcases.")
+ if args.test_basename in NON_XML_GENERATING_TESTS:
+ L.info("Detected special test not able to generate XML log! Will not parse it and will not repeat individual testcases")
args.no_extra_args = True
args.max_repeats = 0