Skip to content

Commit

Permalink
Handle current directory prefix for parsing command arguments in boot…
Browse files Browse the repository at this point in the history
…strap test command.
  • Loading branch information
StevenLaabs committed Jun 22, 2018
1 parent be3cd46 commit 475405b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bootstrap/test.rs
Expand Up @@ -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();
Expand Down

0 comments on commit 475405b

Please sign in to comment.