]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/util.rs
Auto merge of #93921 - matthiaskrgr:rollup-wn3jlxj, r=matthiaskrgr
[rust.git] / src / bootstrap / util.rs
index ee58bedcc8735104091947eead2b8b5af2dcd833..2c78ceb1e5bec5b21386ecc70ee8d2d96310634a 100644 (file)
@@ -282,9 +282,10 @@ pub fn is_valid_test_suite_arg<'a, P: AsRef<Path>>(
     if !path.starts_with(suite_path) {
         return None;
     }
-    let exists = path.is_dir() || path.is_file();
+    let abs_path = builder.src.join(path);
+    let exists = abs_path.is_dir() || abs_path.is_file();
     if !exists {
-        if let Some(p) = path.to_str() {
+        if let Some(p) = abs_path.to_str() {
             builder.info(&format!("Warning: Skipping \"{}\": not a regular file or directory", p));
         }
         return None;