summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2015-10-28 12:28:59 +0100
committerThomas Miedema <thomasmiedema@gmail.com>2015-10-29 09:23:10 +0100
commit032be43b66db29ca6893bd4219c0d6036201a94e (patch)
tree21ac0e13f7a8fd6a647b8ec3f8fe2eb7757e4291 /testsuite/driver/testglobals.py
parent08f5c4e3590609c1a9603bd78b089dbb28cff9f8 (diff)
downloadhaskell-032be43b66db29ca6893bd4219c0d6036201a94e.tar.gz
Testsuite: report and error out on unfound tests
Users are sometimes confused why their test doesn't run. It is usually because of a misspelled testname, for example using 'TEST=1234' instead of 'TEST=T1234'. After this patch it is hopefully more clear what the problem is, showing: ERROR: tests not found: ['1234'] Instead of: 0 total tests, which gave rise to 0 test cases, of which 0 were skipped Reviewed by: austin, bgamari Differential Revision: https://phabricator.haskell.org/D1388
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index 95168f3c5e..0891624473 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -23,7 +23,8 @@ class TestConfig:
self.rootdirs = []
# Run these tests only (run all tests if empty)
- self.only = []
+ self.run_only_some_tests = False
+ self.only = set()
# Accept new output which differs from the sample?
self.accept = 0