Skip to content

Commit 9be9492

Browse files
Rohan McGovernSergio Ahumada
Rohan McGovern
authored and
Sergio Ahumada
committed
tests: allow unstable tests to be marked with CONFIG+=insignificant_test
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 (cherry picked from commit b0a5a988900b777cb08012408eb108512a3e873b)
1 parent 80cd74a commit 9be9492

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mkspecs/features/testcase.prf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ embedded: check.commands += -qws
3838

3939
# Allow for custom arguments to tests
4040
check.commands += $(TESTARGS)
41+
42+
# If the test is marked as insignificant, discard the exit code
43+
insignificant_test:check.commands = -$${check.commands}
44+
4145
QMAKE_EXTRA_TARGETS *= check
4246

4347
!debug_and_release|build_pass {

0 commit comments

Comments
 (0)