summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-02-24 11:21:14 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-26 15:10:09 -0500
commit7dc54873c0768ad3234c40300ae20e4f1e847bdd (patch)
tree8f097cd24106bb68744c7e0bfb8e5e4e2f0fd48e /testsuite/driver/testlib.py
parentc7d4fa55d19f7ac72f3071f9d19e03443c9b538c (diff)
downloadhaskell-7dc54873c0768ad3234c40300ae20e4f1e847bdd.tar.gz
testsuite: Allow tests to be marked as broken on the command line
This allows us to work-around distribution-specific breakage easily.
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 35e9bd060d..5c7a1bd8d7 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -868,6 +868,9 @@ def test(name: TestName,
executeSetups([thisdir_settings, setup], name, myTestOpts)
+ if name in config.broken_tests:
+ myTestOpts.expect = 'fail'
+
thisTest = lambda watcher: runTest(watcher, myTestOpts, name, func, args)
if myTestOpts.alone:
aloneTests.append(thisTest)