Skip to content

Commit d293f7e

Browse files
committed
test: Migrate to pretty jsonlines for binary_name tests
1 parent 92255ac commit d293f7e

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

tests/testsuite/binary_name.rs

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,28 @@ fn check_msg_format_json() {
315315
// Run cargo build.
316316
p.cargo("build --message-format=json")
317317
.masquerade_as_nightly_cargo(&["different-binary-name"])
318-
.with_stdout_data(str![[r#"
319-
{"executable":"[ROOT]/foo/target/debug/007bar[EXE]","features":[],"filenames":"{...}","fresh":false,"manifest_path":"[ROOT]/foo/Cargo.toml","package_id":"path+[ROOTURL]/foo#0.0.1","profile":"{...}","reason":"compiler-artifact","target":"{...}"}
320-
{"reason":"build-finished","success":true}
321-
322-
"#]].is_jsonlines())
318+
.with_stdout_data(
319+
str![[r#"
320+
[
321+
{
322+
"executable": "[ROOT]/foo/target/debug/007bar[EXE]",
323+
"features": [],
324+
"filenames": "{...}",
325+
"fresh": false,
326+
"manifest_path": "[ROOT]/foo/Cargo.toml",
327+
"package_id": "path+[ROOTURL]/foo#0.0.1",
328+
"profile": "{...}",
329+
"reason": "compiler-artifact",
330+
"target": "{...}"
331+
},
332+
{
333+
"reason": "build-finished",
334+
"success": true
335+
}
336+
]
337+
"#]]
338+
.is_json()
339+
.against_jsonlines(),
340+
)
323341
.run();
324342
}

0 commit comments

Comments
 (0)