Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
70dc7123
Commit
70dc7123
authored
Jan 24, 2013
by
ian@well-typed.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't allow '/' characters in test names
parent
fb20a08e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
testsuite/driver/testlib.py
testsuite/driver/testlib.py
+1
-1
No files found.
testsuite/driver/testlib.py
View file @
70dc7123
...
...
@@ -645,7 +645,7 @@ def test (name, setup, func, args):
global
allTestNames
if
name
in
allTestNames
:
framework_fail
(
name
,
'duplicate'
,
'There are multiple tests with this name'
)
if
not
re
.
match
(
'^[a-zA-Z0-9][a-zA-Z0-9._
/
-]*$'
,
name
):
if
not
re
.
match
(
'^[a-zA-Z0-9][a-zA-Z0-9._-]*$'
,
name
):
framework_fail
(
name
,
'bad_name'
,
'This test has an invalid name'
)
myTestOpts
=
copy
.
copy
(
thisdir_testopts
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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