Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
45912613
Commit
45912613
authored
Feb 06, 2008
by
Simon Marlow
Browse files
If the "setup" argument to test is a list, treat it as a list of functions
Avoids the need to write composes()
parent
e812749b
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/driver/testlib.py
View file @
45912613
...
...
@@ -9,6 +9,7 @@ import re
import
traceback
import
copy
import
glob
import
types
have_subprocess
=
False
try
:
...
...
@@ -376,6 +377,10 @@ def getTestDir():
def
test
(
name
,
setup
,
func
,
args
):
n
=
1
opts
=
copy
.
copy
(
thisdir_testopts
)
if
type
(
setup
)
is
types
.
ListType
:
setup
=
composes
(
setup
)
setup
(
opts
)
if
opts
.
alone
:
n
=
config
.
threads
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment