Skip to content

Commit c2b920f

Browse files
committed
Show suite paths (src/test/ui/...) in help output.
1 parent 607e851 commit c2b920f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/bootstrap/builder.rs

+12-6
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,19 @@ impl<'a> Builder<'a> {
489489
should_run = (desc.should_run)(should_run);
490490
}
491491
let mut help = String::from("Available paths:\n");
492+
let mut add_path = |path: &Path| {
493+
help.push_str(&format!(" ./x.py {} {}\n", subcommand, path.display()));
494+
};
492495
for pathset in should_run.paths {
493-
if let PathSet::Set(set) = pathset {
494-
set.iter().for_each(|path| {
495-
help.push_str(
496-
format!(" ./x.py {} {}\n", subcommand, path.display()).as_str(),
497-
)
498-
})
496+
match pathset {
497+
PathSet::Set(set) => {
498+
for path in set {
499+
add_path(&path);
500+
}
501+
}
502+
PathSet::Suite(path) => {
503+
add_path(&path.join("..."));
504+
}
499505
}
500506
}
501507
Some(help)

0 commit comments

Comments
 (0)