Skip to content

Commit 1c01646

Browse files
Extend json detection in runtest
1 parent f1070b1 commit 1c01646

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/compiletest/src/runtest.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -3204,7 +3204,9 @@ impl<'test> TestCx<'test> {
32043204
let json = cflags.contains("--error-format json")
32053205
|| cflags.contains("--error-format pretty-json")
32063206
|| cflags.contains("--error-format=json")
3207-
|| cflags.contains("--error-format=pretty-json");
3207+
|| cflags.contains("--error-format=pretty-json")
3208+
|| cflags.contains("--output-format json")
3209+
|| cflags.contains("--output-format=json");
32083210

32093211
let mut normalized = output.to_string();
32103212

0 commit comments

Comments
 (0)