Disarm drop bombs for unexecuted test Cargo commands
The code for running tests uses a custom command machinery because it streams the output of the command. We thus need to mark the command as executed in a dry run, to avoid a drop bomb panic.
This commit is contained in:
parent
ebb3089038
commit
0cab9626f4
2 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,7 @@ impl GitInfo {
|
|||
|
||||
// Ok, let's scrape some info
|
||||
let ver_date = output(
|
||||
&mut helpers::git(Some(dir))
|
||||
helpers::git(Some(dir))
|
||||
.arg("log")
|
||||
.arg("-1")
|
||||
.arg("--date=short")
|
||||
|
|
|
@ -33,6 +33,7 @@ pub(crate) fn try_run_tests(
|
|||
stream: bool,
|
||||
) -> bool {
|
||||
if builder.config.dry_run() {
|
||||
cmd.mark_as_executed();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue