Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
7f4585e0
Commit
7f4585e0
authored
Aug 03, 2007
by
Ian Lynagh
Browse files
Add exit_code_if_platform functions to the testlib
parent
e3931f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/driver/testlib.py
View file @
7f4585e0
...
...
@@ -217,6 +217,13 @@ def exit_code( val ):
def
_exit_code
(
opts
,
v
):
opts
.
exit_code
=
v
def
exit_code_if_platform
(
val
,
plat
):
return
lambda
opts
,
v
=
val
,
p
=
plat
:
_exit_code_if_platform
(
opts
,
v
,
p
)
def
_exit_code_if_platform
(
opts
,
val
,
plat
):
if
config
.
platform
==
plat
:
opts
.
exit_code
=
val
# -----
def
extra_run_opts
(
val
):
...
...
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