Skip to content

Commit 62b5127

Browse files
committed
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.
1 parent d6c149d commit 62b5127

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/src/utils/render_tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub(crate) fn try_run_tests(
3333
stream: bool,
3434
) -> bool {
3535
if builder.config.dry_run() {
36+
cmd.mark_as_executed();
3637
return true;
3738
}
3839

0 commit comments

Comments
 (0)