Silence all the boilerplate around ./miri run and ./miri run-dep

This commit is contained in:
Oli Scherer 2023-07-07 13:41:06 +00:00
parent 822feaa5eb
commit 813b56b5ab
2 changed files with 1 additions and 1 deletions

View File

@ -325,6 +325,7 @@ run|run-dep)
MIRIFLAGS="$MIRIFLAGS --target $MIRI_TEST_TARGET"
fi
CARGO="$CARGO --quiet"
# First build and get a sysroot.
$CARGO build $CARGO_EXTRA_FLAGS --manifest-path "$MIRIDIR"/Cargo.toml
find_sysroot

View File

@ -288,6 +288,5 @@ fn run_dep_mode(target: String, mut args: impl Iterator<Item = OsString>) -> Res
cmd.arg(path);
cmd.args(args);
println!("Running {cmd:?}");
if cmd.spawn()?.wait()?.success() { Ok(()) } else { std::process::exit(1) }
}