From 98f56d8ada26ad9b3d5c41032c8fc46df3b1399a Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 16 Nov 2025 20:24:19 +0100 Subject: [PATCH] restore: enable debug logging for flaky windows test --- internal/restorer/restorer_windows_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/restorer/restorer_windows_test.go b/internal/restorer/restorer_windows_test.go index 804378975..348f02240 100644 --- a/internal/restorer/restorer_windows_test.go +++ b/internal/restorer/restorer_windows_test.go @@ -16,6 +16,7 @@ import ( "unsafe" "github.com/restic/restic/internal/data" + "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" "github.com/restic/restic/internal/repository" "github.com/restic/restic/internal/test" @@ -458,6 +459,11 @@ func TestEmptyFileAttributeCombinationsOverwrite(t *testing.T) { func testFileAttributeCombinationsOverwrite(t *testing.T, isEmpty bool) { t.Parallel() + debugEnabled := debug.TestLogToStderr(t) + if debugEnabled { + defer debug.TestDisableLog(t) + } + //Get attribute combinations attributeCombinations := generateCombinations(5, []bool{}) //Get overwrite file attribute combinations