From c949db7e6f2418ff141de61c69d9d12ac21de960 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 15 Jan 2024 12:34:53 +0200 Subject: [PATCH] fix: write the run log It turns out that writing the to a file is sometimes a useful thing to do. Who could've foreseen this. Well, they're using a paper bag on their head as they're writing this commit message. Signed-off-by: Lars Wirzenius --- src/bin/radicle-native-ci.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/radicle-native-ci.rs b/src/bin/radicle-native-ci.rs index 43027dc..ef05814 100644 --- a/src/bin/radicle-native-ci.rs +++ b/src/bin/radicle-native-ci.rs @@ -220,6 +220,11 @@ impl<'a> Runner<'a> { self.builder.result(result); + if let Err(e) = self.run_log.write() { + self.log + .writeln(&format!("failed to write run log: {}", e))?; + } + Ok(()) } }