Skip to content

Commit 475405b

Browse files
committed
Handle current directory prefix for parsing command arguments in bootstrap test command.
1 parent be3cd46 commit 475405b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/bootstrap/test.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,12 @@ impl Step for Compiletest {
10741074
// Get test-args by striping suite path
10751075
let mut test_args: Vec<&str> = paths
10761076
.iter()
1077+
.map(|p| {
1078+
match p.strip_prefix(".") {
1079+
Ok(path) => path,
1080+
Err(_) => p,
1081+
}
1082+
})
10771083
.filter(|p| p.starts_with(suite_path) && p.is_file())
10781084
.map(|p| p.strip_prefix(suite_path).unwrap().to_str().unwrap())
10791085
.collect();

0 commit comments

Comments
 (0)