From 6e9d27592d46b9b48c7e11c102948216076c138c Mon Sep 17 00:00:00 2001 From: WenyXu Date: Thu, 28 Dec 2023 14:46:13 +0000 Subject: [PATCH] fix: should set append flag to fopen --- tests/runner/src/env.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/runner/src/env.rs b/tests/runner/src/env.rs index 3dcb93280752..76946ad6ba60 100644 --- a/tests/runner/src/env.rs +++ b/tests/runner/src/env.rs @@ -187,6 +187,7 @@ impl Env { .create(true) .write(true) .truncate(truncate_log) + .append(!truncate_log) .open(log_file_name) .unwrap();