about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-01-18 12:09:15 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-01-18 12:09:15 +0100
commitf46f9231a8058bcbfc2c1442f86c072f5bd92ddc (patch)
tree57ad98b30ec49405e483463c2d7f7aa2386413b3
parent74c1ad5d35c7fbdb834c42144d966279fdff3679 (diff)
downloadrust-f46f9231a8058bcbfc2c1442f86c072f5bd92ddc.tar.gz
rust-f46f9231a8058bcbfc2c1442f86c072f5bd92ddc.zip
Remove extra removal from test path
-rw-r--r--src/tools/compiletest/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/main.rs b/src/tools/compiletest/src/main.rs
index 2aea30870ff..3092c656cd7 100644
--- a/src/tools/compiletest/src/main.rs
+++ b/src/tools/compiletest/src/main.rs
@@ -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),