Commit 70dc7123 authored by ian@well-typed.com's avatar ian@well-typed.com

Don't allow '/' characters in test names

parent fb20a08e
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment