Skip to content

Commit

Permalink
Remove extra removal from test path
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jan 18, 2023
1 parent 74c1ad5 commit f46f923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f46f923

Please sign in to comment.