Compare commits

...

2 Commits

Author SHA1 Message Date
Omar Abdulla 6b8fec2a12 Flush the buffer after writing the entire file output 2025-10-09 18:01:19 +03:00
Omar Abdulla 73fce7a250 Make output format deserializable 2025-10-09 17:42:08 +03:00
2 changed files with 9 additions and 1 deletions
+1
View File
@@ -1002,6 +1002,7 @@ pub enum TestingPlatform {
Ord,
Hash,
Serialize,
Deserialize,
ValueEnum,
EnumString,
Display,
@@ -318,7 +318,14 @@ async fn start_cli_reporting_task(output_format: OutputFormat, reporter: Reporte
status, success_count, failure_count, ignored_count,
)
.unwrap();
writeln!(buf).unwrap()
writeln!(buf).unwrap();
buf = tokio::task::spawn_blocking(move || {
buf.flush().unwrap();
buf
})
.await
.unwrap();
}
}
}