File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,17 @@ impl TestContext {
144
144
let target_dir = PathBuf :: from ( var_os ( "CARGO_TARGET_DIR" ) . unwrap_or_else ( || "target" . into ( ) ) ) ;
145
145
let mut config = Config {
146
146
output_conflict_handling : error_on_output_conflict,
147
+ // Pre-fill filters with TESTNAME; will be later extended with `self.args`.
147
148
filter_files : env:: var ( "TESTNAME" )
148
- . map ( |filters| filters. split ( ',' ) . map ( str:: to_string) . collect ( ) )
149
+ . map ( |filters| {
150
+ filters
151
+ . split ( ',' )
152
+ // Make sure that if TESTNAME is empty we produce the empty list here,
153
+ // not a list containing an empty string.
154
+ . filter ( |s| !s. is_empty ( ) )
155
+ . map ( str:: to_string)
156
+ . collect ( )
157
+ } )
149
158
. unwrap_or_default ( ) ,
150
159
target : None ,
151
160
bless_command : Some ( if IS_RUSTC_TEST_SUITE {
You can’t perform that action at this time.
0 commit comments