tests: allow unstable tests to be marked with CONFIG+=insignificant_test
authorRohan McGovern <rohan.mcgovern@nokia.com>
Thu, 19 May 2011 01:42:31 +0000 (11:42 +1000)
committerRohan McGovern <rohan.mcgovern@nokia.com>
Thu, 19 May 2011 03:56:28 +0000 (13:56 +1000)
Marking a test with CONFIG+=insignificant_test will cause the exit code
of the test to be discarded during `make check'.  This is intended to be
used for tests which are valuable to run, but are known to be unstable
and are not feasible to immediately fix.

Reviewed-by: Jason McDonald
Change-Id: I50a712c33c2ebb0af39f1ea0bf2adef7f0936425

mkspecs/features/testcase.prf

index 7a7c9e3..eb0aa9f 100644 (file)
@@ -38,6 +38,10 @@ embedded:       check.commands += -qws
 
 # Allow for custom arguments to tests
 check.commands += $(TESTARGS)
+
+# If the test is marked as insignificant, discard the exit code
+insignificant_test:check.commands = -$${check.commands}
+
 QMAKE_EXTRA_TARGETS *= check
 
 !debug_and_release|build_pass {