Skip to content

Commit

Permalink
Fix sharing log results across toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Aug 31, 2024
1 parent 07ac170 commit 491ab55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runner/worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,9 @@ impl<'a, DB: WriteResults + Sync> Worker<'a, DB> {
},
};

let storage = logs.clone();
// Fork logs off to distinct branch, so that each toolchain has its own log file,
// while keeping the shared prepare step in common.
let storage = logs.duplicate();
if let Err((err, test_result)) = &self.run_task(&task, &storage) {
if let Err(e) =
task.mark_as_failed(self.ex, self.db, err, test_result, &storage)
Expand Down

0 comments on commit 491ab55

Please sign in to comment.