about summary refs log tree commit diff
path: root/src/bootstrap
diff options
context:
space:
mode:
authorSteven Laabs <swlaabs@gmail.com>2018-06-21 23:57:06 -0500
committerSteven Laabs <swlaabs@gmail.com>2018-06-22 09:09:31 -0500
commit475405b6af1d7369fe563ddfa28d5d74e4ca5d8f (patch)
tree9b05c6612e1a53701c1f587b24570d3bf253af7b /src/bootstrap
parentbe3cd464fd3942292a296ea2e49aa03b571d5897 (diff)
downloadrust-475405b6af1d7369fe563ddfa28d5d74e4ca5d8f.tar.gz
rust-475405b6af1d7369fe563ddfa28d5d74e4ca5d8f.zip
Handle current directory prefix for parsing command arguments in bootstrap test command.
Diffstat (limited to 'src/bootstrap')
-rw-r--r--src/bootstrap/test.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs
index d2fd798723d..90688b1c0e1 100644
--- a/src/bootstrap/test.rs
+++ b/src/bootstrap/test.rs
@@ -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();