Handle current directory prefix for parsing command arguments in bootstrap test command.
This commit is contained in:
parent
be3cd464fd
commit
475405b6af
1 changed files with 6 additions and 0 deletions
|
@ -1074,6 +1074,12 @@ impl Step for Compiletest {
|
|||
// Get test-args by striping suite path
|
||||
let mut test_args: Vec<&str> = paths
|
||||
.iter()
|
||||
.map(|p| {
|
||||
match p.strip_prefix(".") {
|
||||
Ok(path) => path,
|
||||
Err(_) => p,
|
||||
}
|
||||
})
|
||||
.filter(|p| p.starts_with(suite_path) && p.is_file())
|
||||
.map(|p| p.strip_prefix(suite_path).unwrap().to_str().unwrap())
|
||||
.collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue