Skip to content

Commit

Permalink
Fix x suggest --run
Browse files Browse the repository at this point in the history
i broke this in the previous commit; and metrics never worked until i switched from `execute_cli` to build
  • Loading branch information
jyn514 committed Jul 14, 2023
1 parent e4135d4 commit dc48a8b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bootstrap/suggest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ pub fn suggest(builder: &Builder<'_>, run: bool) {
for sug in suggestions {
let mut build: crate::Build = builder.build.clone();
build.config.paths = sug.2;
build.config.cmd = crate::flags::Flags::parse_from([sug.0]).cmd;
build.config.cmd = crate::flags::Flags::parse_from(["x.py", sug.0]).cmd;
if let Some(stage) = sug.1 {
build.config.stage = stage;
}

Builder::new(&build).execute_cli()
build.build();
}
} else {
println!("help: consider using the `--run` flag to automatically run suggested tests");
Expand Down

0 comments on commit dc48a8b

Please sign in to comment.