Skip to content

Commit 10f1238

Browse files
committed
handle json_output in test::run_cargo_test
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 3c78eb7 commit 10f1238

File tree

1 file changed

+5
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/build_steps/test.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2634,6 +2634,11 @@ fn prepare_cargo_test(
26342634
if builder.kind == Kind::Test && !builder.fail_fast {
26352635
cargo.arg("--no-fail-fast");
26362636
}
2637+
2638+
if builder.config.json_output {
2639+
cargo.arg("--message-format=json");
2640+
}
2641+
26372642
match builder.doc_tests {
26382643
DocTests::Only => {
26392644
cargo.arg("--doc");

0 commit comments

Comments
 (0)