Skip to content

Commit b0046c0

Browse files
committedNov 30, 2018
Fix message order
1 parent c78cd0c commit b0046c0

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed
 

‎tests/testsuite/test.rs

+10-9
Original file line numberDiff line numberDiff line change
@@ -3080,10 +3080,11 @@ fn json_artifact_includes_executable_for_integration_tests() {
30803080
.file("tests/integration_test.rs", r#"#[test] fn integration_test() {}"#)
30813081
.build();
30823082

3083-
p.cargo("test -v --no-run --message-format=json --test integration_test")
3083+
// Using jobs=1 to ensure that the order of messages is consistent.
3084+
p.cargo("test -v --no-run --message-format=json --jobs=1 --test integration_test")
30843085
.with_json(r#"
30853086
{
3086-
"executable": "[..]/foo/target/debug/foo[EXE]",
3087+
"executable": "[..]/foo/target/debug/integration_test-[..][EXE]",
30873088
"features": [],
30883089
"filenames": "{...}",
30893090
"fresh": false,
@@ -3092,15 +3093,15 @@ fn json_artifact_includes_executable_for_integration_tests() {
30923093
"reason": "compiler-artifact",
30933094
"target": {
30943095
"crate_types": [ "bin" ],
3095-
"kind": [ "bin" ],
3096+
"kind": [ "test" ],
30963097
"edition": "2015",
3097-
"name": "foo",
3098-
"src_path": "[..]/foo/src/main.rs"
3098+
"name": "integration_test",
3099+
"src_path": "[..]/foo/tests/integration_test.rs"
30993100
}
31003101
}
31013102
31023103
{
3103-
"executable": "[..]/foo/target/debug/integration_test-[..][EXE]",
3104+
"executable": "[..]/foo/target/debug/foo[EXE]",
31043105
"features": [],
31053106
"filenames": "{...}",
31063107
"fresh": false,
@@ -3109,10 +3110,10 @@ fn json_artifact_includes_executable_for_integration_tests() {
31093110
"reason": "compiler-artifact",
31103111
"target": {
31113112
"crate_types": [ "bin" ],
3112-
"kind": [ "test" ],
3113+
"kind": [ "bin" ],
31133114
"edition": "2015",
3114-
"name": "integration_test",
3115-
"src_path": "[..]/foo/tests/integration_test.rs"
3115+
"name": "foo",
3116+
"src_path": "[..]/foo/src/main.rs"
31163117
}
31173118
}
31183119
"#)

0 commit comments

Comments
 (0)
Please sign in to comment.