Skip to content

Commit f46f923

Browse files
Remove extra removal from test path
1 parent 74c1ad5 commit f46f923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/compiletest/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ fn make_test_name(
775775
) -> test::TestName {
776776
// Print the name of the file, relative to the repository root.
777777
// `src_base` looks like `/path/to/rust/tests/ui`
778-
let root_directory = config.src_base.parent().unwrap().parent().unwrap().parent().unwrap();
778+
let root_directory = config.src_base.parent().unwrap().parent().unwrap();
779779
let path = testpaths.file.strip_prefix(root_directory).unwrap();
780780
let debugger = match config.debugger {
781781
Some(d) => format!("-{}", d),

0 commit comments

Comments
 (0)