Merge pull request #18897 from duncanawoods/master

fix: Make test_runner::TestState::stdout optional to fix parsing cargo test json output
This commit is contained in:
HKalbasi 2025-01-15 19:51:36 +00:00 committed by GitHub
commit 88ae0896f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,11 @@ pub(crate) enum TestState {
Started,
Ok,
Ignored,
Failed { stdout: String },
Failed {
// the stdout field is not always present depending on cargo test flags
#[serde(skip_serializing_if = "String::is_empty", default)]
stdout: String,
},
}
#[derive(Debug, Deserialize)]