]> git.lizzy.rs Git - rust.git/commitdiff
Remove extra removal from test path
authorGuillaume Gomez <guillaume.gomez@huawei.com>
Wed, 18 Jan 2023 11:09:15 +0000 (12:09 +0100)
committerGuillaume Gomez <guillaume.gomez@huawei.com>
Wed, 18 Jan 2023 11:09:15 +0000 (12:09 +0100)
src/tools/compiletest/src/main.rs

index 2aea30870ff5e6dc97ebf1543ebe6b5cb34fd34b..3092c656cd729ba787276b95d199b2afbe15fb8f 100644 (file)
@@ -775,7 +775,7 @@ fn make_test_name(
 ) -> test::TestName {
     // Print the name of the file, relative to the repository root.
     // `src_base` looks like `/path/to/rust/tests/ui`
-    let root_directory = config.src_base.parent().unwrap().parent().unwrap().parent().unwrap();
+    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),