mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
test: Migrate to pretty jsonlines for bad_manifest_path tests
This commit is contained in:
parent
98c21a666d
commit
65577954ce
@ -331,10 +331,14 @@ fn verify_project_dir_containing_cargo_toml() {
|
||||
.with_status(1)
|
||||
.with_stdout_data(
|
||||
str![[r#"
|
||||
{"invalid":"the manifest-path must be a path to a Cargo.toml file"}
|
||||
|
||||
[
|
||||
{
|
||||
"invalid": "the manifest-path must be a path to a Cargo.toml file"
|
||||
}
|
||||
]
|
||||
"#]]
|
||||
.is_jsonlines(),
|
||||
.is_json()
|
||||
.against_jsonlines(),
|
||||
)
|
||||
.run();
|
||||
}
|
||||
@ -351,10 +355,14 @@ fn verify_project_dir_plus_file() {
|
||||
.with_status(1)
|
||||
.with_stdout_data(
|
||||
str![[r#"
|
||||
{"invalid":"the manifest-path must be a path to a Cargo.toml file"}
|
||||
|
||||
[
|
||||
{
|
||||
"invalid": "the manifest-path must be a path to a Cargo.toml file"
|
||||
}
|
||||
]
|
||||
"#]]
|
||||
.is_jsonlines(),
|
||||
.is_json()
|
||||
.against_jsonlines(),
|
||||
)
|
||||
.run();
|
||||
}
|
||||
@ -371,10 +379,14 @@ fn verify_project_dir_plus_path() {
|
||||
.with_status(1)
|
||||
.with_stdout_data(
|
||||
str![[r#"
|
||||
{"invalid":"the manifest-path must be a path to a Cargo.toml file"}
|
||||
|
||||
[
|
||||
{
|
||||
"invalid": "the manifest-path must be a path to a Cargo.toml file"
|
||||
}
|
||||
]
|
||||
"#]]
|
||||
.is_jsonlines(),
|
||||
.is_json()
|
||||
.against_jsonlines(),
|
||||
)
|
||||
.run();
|
||||
}
|
||||
@ -387,10 +399,14 @@ fn verify_project_dir_to_nonexistent_cargo_toml() {
|
||||
.with_status(1)
|
||||
.with_stdout_data(
|
||||
str![[r#"
|
||||
{"invalid":"manifest path `foo/bar/baz/Cargo.toml` does not exist"}
|
||||
|
||||
[
|
||||
{
|
||||
"invalid": "manifest path `foo/bar/baz/Cargo.toml` does not exist"
|
||||
}
|
||||
]
|
||||
"#]]
|
||||
.is_jsonlines(),
|
||||
.is_json()
|
||||
.against_jsonlines(),
|
||||
)
|
||||
.run();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user