summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@well-typed.com>2022-02-08 00:20:44 +0000
committerBen Gamari <ben@well-typed.com>2022-02-08 00:20:44 +0000
commitc7f1f968479b150b188dbc2bacd9e39ce3c00b0e (patch)
treef7b80d3faf5558de4de727c46ea2ab1ab9f0dbd2
parentff867c460db9cfc43f5697c8e582f8c1ea4bd572 (diff)
downloadhaskell-wip/runtests-dedup-only.tar.gz
testsuite: Deduplicate --only flags wip/runtests-dedup-only
Otherwise the testsuite driver will complain about unknown tests if you pass a test to `--only` multiple times.
-rw-r--r--testsuite/driver/runtests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/driver/runtests.py b/testsuite/driver/runtests.py
index d2e25eaa19..6983866d5f 100644
--- a/testsuite/driver/runtests.py
+++ b/testsuite/driver/runtests.py
@@ -121,7 +121,7 @@ if args.test_package_db:
config.test_package_db = args.test_package_db
if args.only:
- config.only = args.only
+ config.only = set(args.only)
config.run_only_some_tests = True
if args.way: