Skip to content

Commit 87275d1

Browse files
committed
allow test labels to be optionally specified as a regex
1 parent d4aa9ec commit 87275d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

command_line_arguments.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ def normalize_arguments(args, tests):
200200
args.git = arg
201201
elif os.path.isfile(arg):
202202
args.optional_files += [arg]
203+
elif any(list(map(lambda x: re.search(arg, x), test_labels))):
204+
try:
205+
args.labels += list(filter(lambda x: re.search(arg, x), test_labels))
206+
except re.error:
207+
pass
203208
else:
204209
matching_labels = [
205210
t

0 commit comments

Comments
 (0)