[commit: testsuite] master: Don't allow '/' characters in test names (5daeb97)
Ian Lynagh
igloo at earth.li
Thu Jan 24 19:19:33 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/5daeb972ba2a0be521a36ff148811c36fd8ce9c8
>---------------------------------------------------------------
commit 5daeb972ba2a0be521a36ff148811c36fd8ce9c8
Author: Ian Lynagh <ian at well-typed.com>
Date: Thu Jan 24 17:04:40 2013 +0000
Don't allow '/' characters in test names
>---------------------------------------------------------------
driver/testlib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/driver/testlib.py b/driver/testlib.py
index c265350..4868e6d 100644
--- a/driver/testlib.py
+++ b/driver/testlib.py
@@ -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)
More information about the ghc-commits
mailing list