diff options
| author | Steven Laabs <swlaabs@gmail.com> | 2018-06-21 17:48:24 -0500 |
|---|---|---|
| committer | Steven Laabs <swlaabs@gmail.com> | 2018-06-22 09:09:31 -0500 |
| commit | be3cd464fd3942292a296ea2e49aa03b571d5897 (patch) | |
| tree | 324bda90bc6f66afc947e34d9b481b77d30889e0 /src | |
| parent | 01dbfdaf4f45b68b49332b8785262a3a780d0a19 (diff) | |
| download | rust-be3cd464fd3942292a296ea2e49aa03b571d5897.tar.gz rust-be3cd464fd3942292a296ea2e49aa03b571d5897.zip | |
Added stripping current directory prefixes when comparing suite path names
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/builder.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index 08bdff364f8..fa2440e27d0 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -218,6 +218,12 @@ impl StepDescription { } } 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) { |
