tools: allow selecting test subsystems with numbers in their names · nodejs/node@7b94982

Original file line numberDiff line numberDiff line change

@@ -1605,7 +1605,7 @@ def ArgsToTestPaths(test_root, args, suites):

16051605

if len(args) == 0 or 'default' in args:

16061606

def_suites = [s for s in suites if s not in IGNORED_SUITES]

16071607

args = [a for a in args if a != 'default'] + def_suites

1608-

subsystem_regex = re.compile(r'^[a-zA-Z-]*$')

1608+

subsystem_regex = re.compile(r'^[a-zA-Z0-9-]*$')

16091609

check = lambda arg: subsystem_regex.match(arg) and (arg not in suites)

16101610

mapped_args = ["*/test*-%s-*" % arg if check(arg) else arg for arg in args]

16111611

paths = [SplitPath(NormalizePath(a)) for a in mapped_args]