]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/compiletest/src/main.rs
Remove extra removal from test path
[rust.git] / src / tools / compiletest / src / main.rs
index 91c701a5ddd2e469b9115fc02af7eab28dd5349e..3092c656cd729ba787276b95d199b2afbe15fb8f 100644 (file)
@@ -774,8 +774,8 @@ fn make_test_name(
     revision: Option<&String>,
 ) -> test::TestName {
     // Print the name of the file, relative to the repository root.
-    // `src_base` looks like `/path/to/rust/src/test/ui`
-    let root_directory = config.src_base.parent().unwrap().parent().unwrap().parent().unwrap();
+    // `src_base` looks like `/path/to/rust/tests/ui`
+    let root_directory = config.src_base.parent().unwrap().parent().unwrap();
     let path = testpaths.file.strip_prefix(root_directory).unwrap();
     let debugger = match config.debugger {
         Some(d) => format!("-{}", d),