We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41ee6fe commit 2f8c2a9Copy full SHA for 2f8c2a9
src/bootstrap/test.rs
@@ -1008,12 +1008,8 @@ impl Step for Compiletest {
1008
};
1009
1010
// 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
- };
1015
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();
+ p.is_file()).map(|p| p.strip_prefix(suite_path).unwrap().to_str().unwrap()).collect();
1017
1018
test_args.append(&mut builder.config.cmd.test_args());
1019
0 commit comments