From 475405b6af1d7369fe563ddfa28d5d74e4ca5d8f Mon Sep 17 00:00:00 2001 From: Steven Laabs Date: Thu, 21 Jun 2018 23:57:06 -0500 Subject: [PATCH] Handle current directory prefix for parsing command arguments in bootstrap test command. --- src/bootstrap/test.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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();