We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf3c46c commit b470d48Copy full SHA for b470d48
src/bootstrap/test.rs
@@ -1186,6 +1186,12 @@ impl Step for Compiletest {
1186
})
1187
.filter(|p| p.starts_with(suite_path) && (p.is_dir() || p.is_file()))
1188
.filter_map(|p| {
1189
+ // Since test suite paths are themselves directories, if we don't
1190
+ // specify a directory or file, we'll get an empty string here
1191
+ // (the result of the test suite directory without its suite prefix).
1192
+ // Therefore, we need to filter these out, as only the first --test-args
1193
+ // flag is respected, so providing an empty --test-args conflicts with
1194
+ // any following it.
1195
match p.strip_prefix(suite_path).ok().and_then(|p| p.to_str()) {
1196
Some(s) if s != "" => Some(s),
1197
_ => None,
0 commit comments