@@ -106,7 +106,6 @@ fn url() {
106106 . run ( ) ;
107107}
108108
109- #[ allow( deprecated) ]
110109#[ cargo_test]
111110fn simple_with_message_format ( ) {
112111 pkg ( "foo" , "0.0.1" ) ;
@@ -124,60 +123,65 @@ fn simple_with_message_format() {
124123[WARNING] be sure to add `[..]` to your PATH to be able to run the installed binaries
125124
126125"# ] ] )
127- . with_json (
128- r#"
129- {
130- "reason": "compiler-artifact",
131- "package_id": "registry+https://[..]#foo@0.0.1",
132- "manifest_path": "[..]",
133- "target": {
134- "kind": [
135- "lib"
136- ],
137- "crate_types": [
138- "lib"
139- ],
140- "name": "foo",
141- "src_path": "[..]/foo-0.0.1/src/lib.rs",
142- "edition": "2015",
143- "doc": true,
144- "doctest": true,
145- "test": true
146- },
147- "profile": "{...}",
148- "features": [],
149- "filenames": "{...}",
150- "executable": null,
151- "fresh": false
152- }
153-
154- {
155- "reason": "compiler-artifact",
156- "package_id": "registry+https://[..]#foo@0.0.1",
157- "manifest_path": "[..]",
158- "target": {
159- "kind": [
160- "bin"
161- ],
162- "crate_types": [
163- "bin"
164- ],
165- "name": "foo",
166- "src_path": "[..]/foo-0.0.1/src/main.rs",
167- "edition": "2015",
168- "doc": true,
169- "doctest": false,
170- "test": true
171- },
172- "profile": "{...}",
173- "features": [],
174- "filenames": "{...}",
175- "executable": "[..]",
176- "fresh": false
177- }
178-
179- {"reason":"build-finished","success":true}
180- "# ,
126+ . with_stdout_data (
127+ str![ [ r#"
128+ [
129+ {
130+ "executable": null,
131+ "features": [],
132+ "filenames": "{...}",
133+ "fresh": false,
134+ "manifest_path": "[ROOT]/home/.cargo/registry/src/-[HASH]/foo-0.0.1/Cargo.toml",
135+ "package_id": "registry+https://github.com/rust-lang/crates.io-index#foo@0.0.1",
136+ "profile": "{...}",
137+ "reason": "compiler-artifact",
138+ "target": {
139+ "crate_types": [
140+ "lib"
141+ ],
142+ "doc": true,
143+ "doctest": true,
144+ "edition": "2015",
145+ "kind": [
146+ "lib"
147+ ],
148+ "name": "foo",
149+ "src_path": "[ROOT]/home/.cargo/registry/src/-[HASH]/foo-0.0.1/src/lib.rs",
150+ "test": true
151+ }
152+ },
153+ {
154+ "executable": "[..]",
155+ "features": [],
156+ "filenames": "{...}",
157+ "fresh": false,
158+ "manifest_path": "[ROOT]/home/.cargo/registry/src/-[HASH]/foo-0.0.1/Cargo.toml",
159+ "package_id": "registry+https://github.com/rust-lang/crates.io-index#foo@0.0.1",
160+ "profile": "{...}",
161+ "reason": "compiler-artifact",
162+ "target": {
163+ "crate_types": [
164+ "bin"
165+ ],
166+ "doc": true,
167+ "doctest": false,
168+ "edition": "2015",
169+ "kind": [
170+ "bin"
171+ ],
172+ "name": "foo",
173+ "src_path": "[ROOT]/home/.cargo/registry/src/-[HASH]/foo-0.0.1/src/main.rs",
174+ "test": true
175+ }
176+ },
177+ {
178+ "reason": "build-finished",
179+ "success": true
180+ }
181+ ]
182+ "# ] ]
183+ . is_json ( )
184+ . against_jsonlines ( ) ,
181185 )
182186 . run ( ) ;
183187 assert_has_installed_exe ( paths:: cargo_home ( ) , "foo" ) ;
0 commit comments