Skip to content

Commit

Permalink
add log back to result archive and try to delete its contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Guggi committed Aug 25, 2023
1 parent 9604a42 commit 574a163
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/command/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,19 @@ fn build_result_archive(res: ResultId) -> Result<(), std::io::Error> {
const MAXIMUM_FILE_SIZE: u64 = 1_000_000;
let _ = truncate_to_size(&log_path, MAXIMUM_FILE_SIZE);
let _ = truncate_to_size(&res_path, MAXIMUM_FILE_SIZE);
// let _ = truncate_to_size("log", MAXIMUM_FILE_SIZE);
let _ = truncate_to_size("log", MAXIMUM_FILE_SIZE);

let _ = Command::new("zip")
.arg("-0")
.arg(out_path)
.arg("--junk-paths")
// .arg("log")
.arg("log")
.arg(res_path)
.arg(log_path)
.status();

std::fs::File::open("log")?.set_len(0)?;

Ok(())
}

Expand Down

0 comments on commit 574a163

Please sign in to comment.