mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-05 11:35:21 +03:00
Added stripping current directory prefixes when comparing suite path names
This commit is contained in:
@@ -218,6 +218,12 @@ fn run(v: &[StepDescription], builder: &Builder, paths: &[PathBuf]) {
|
||||
}
|
||||
} else {
|
||||
for path in paths {
|
||||
// strip CurDir prefix if present
|
||||
let path = match path.strip_prefix(".") {
|
||||
Ok(p) => p,
|
||||
Err(_) => path,
|
||||
};
|
||||
|
||||
let mut attempted_run = false;
|
||||
for (desc, should_run) in v.iter().zip(&should_runs) {
|
||||
if let Some(suite) = should_run.is_suite_path(path) {
|
||||
|
||||
Reference in New Issue
Block a user