Fix x suggest --run
i broke this in the previous commit; and metrics never worked until i switched from `execute_cli` to build
This commit is contained in:
parent
e4135d4cd4
commit
dc48a8b72c
1 changed files with 2 additions and 3 deletions
|
@ -62,12 +62,11 @@ pub fn suggest(builder: &Builder<'_>, run: bool) {
|
||||||
for sug in suggestions {
|
for sug in suggestions {
|
||||||
let mut build: crate::Build = builder.build.clone();
|
let mut build: crate::Build = builder.build.clone();
|
||||||
build.config.paths = sug.2;
|
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 {
|
if let Some(stage) = sug.1 {
|
||||||
build.config.stage = stage;
|
build.config.stage = stage;
|
||||||
}
|
}
|
||||||
|
build.build();
|
||||||
Builder::new(&build).execute_cli()
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
println!("help: consider using the `--run` flag to automatically run suggested tests");
|
println!("help: consider using the `--run` flag to automatically run suggested tests");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue