Skip to content

Commit 2f8c2a9

Browse files
author
Collins Abitekaniza
committed
ignore test-args if user specifies suite_path
1 parent 41ee6fe commit 2f8c2a9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/bootstrap/test.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,12 +1008,8 @@ impl Step for Compiletest {
10081008
};
10091009

10101010
// Get test-args by striping suite path
1011-
let assert_file = |p: &PathBuf| {
1012-
assert!(p.is_file(), "Expected {:?} to be a path to a test file", p);
1013-
return true
1014-
};
10151011
let mut test_args: Vec<&str> = paths.iter().filter(|p| p.starts_with(suite_path) &&
1016-
assert_file(p)).map(|p| p.strip_prefix(suite_path).unwrap().to_str().unwrap()).collect();
1012+
p.is_file()).map(|p| p.strip_prefix(suite_path).unwrap().to_str().unwrap()).collect();
10171013

10181014
test_args.append(&mut builder.config.cmd.test_args());
10191015

0 commit comments

Comments
 (0)