[commit: testsuite] master: Make numeric-only test names a framework failure (0d29b1b)
Ian Lynagh
igloo at earth.li
Sat Jan 26 01:29:36 CET 2013
Repository : ssh://darcs.haskell.org//srv/darcs/testsuite
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/0d29b1bf960023caa91f68dba21fb7b26a419e8e
>---------------------------------------------------------------
commit 0d29b1bf960023caa91f68dba21fb7b26a419e8e
Author: Ian Lynagh <ian at well-typed.com>
Date: Fri Jan 25 16:32:26 2013 +0000
Make numeric-only test names a framework failure
>---------------------------------------------------------------
driver/testlib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/driver/testlib.py b/driver/testlib.py
index 0c8e1f3..40ecf86 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('^[0-9]*[a-zA-Z][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