File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,9 @@ def main():
132
132
dest = "targets" ,
133
133
help = "stdlib deployment targets to test. Accept "
134
134
"multiple (default: " + host_target + ")" )
135
+ parser .add_argument ("--filter" , type = str , metavar = "REGEX" ,
136
+ help = "only run tests with paths matching the given "
137
+ "regular expression" )
135
138
parser .add_argument ("--mode" ,
136
139
choices = TEST_MODES , default = 'optimize_none' ,
137
140
help = "test mode (default: optimize_none)" )
@@ -262,6 +265,9 @@ def main():
262
265
'--xunit-xml-output=%s' % os .path .join (args .result_dir ,
263
266
'lit-tests.xml' )]
264
267
268
+ if args .filter :
269
+ test_args += ['--filter' , args .filter ]
270
+
265
271
test_cmd = [sys .executable , args .lit ] + test_args + paths
266
272
267
273
# Do execute test
You can’t perform that action at this time.
0 commit comments