summaryrefslogtreecommitdiff
path: root/testsuite/driver
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2023-02-07 16:19:57 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-02-10 09:53:51 -0500
commitc44e5f30caca390441e6efa7b9bdab4e698afd31 (patch)
tree259ae2cf095772d7cbeeac5fb529a19f042aa8ac /testsuite/driver
parent59556235a8d216b6274ad7966b70b585f585cdaa (diff)
downloadhaskell-c44e5f30caca390441e6efa7b9bdab4e698afd31.tar.gz
Testsuite: decrease length001 timeout for JS (#22921)
Diffstat (limited to 'testsuite/driver')
-rw-r--r--testsuite/driver/testlib.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 1c5f5fcaf7..c35bea1811 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -129,14 +129,17 @@ def no_deps( name, opts):
def skip( name, opts ):
opts.skip = True
+def js_arch() -> bool:
+ return arch("javascript");
+
# disable test on JS arch
def js_skip( name, opts ):
- if arch("javascript"):
+ if js_arch():
skip(name,opts)
# expect broken for the JS backend
def js_broken( bug: IssueNumber ):
- if arch("javascript"):
+ if js_arch():
return expect_broken(bug);
else:
return normal;