We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff1bdb commit bf3c46cCopy full SHA for bf3c46c
src/bootstrap/test.rs
@@ -1184,8 +1184,13 @@ impl Step for Compiletest {
1184
Err(_) => p,
1185
}
1186
})
1187
- .filter(|p| p.starts_with(suite_path) && p.is_file())
1188
- .map(|p| p.strip_prefix(suite_path).unwrap().to_str().unwrap())
+ .filter(|p| p.starts_with(suite_path) && (p.is_dir() || p.is_file()))
+ .filter_map(|p| {
1189
+ match p.strip_prefix(suite_path).ok().and_then(|p| p.to_str()) {
1190
+ Some(s) if s != "" => Some(s),
1191
+ _ => None,
1192
+ }
1193
+ })
1194
.collect();
1195
1196
test_args.append(&mut builder.config.cmd.test_args());
0 commit comments