Merge pull request #5603 from MichaelEischer/debug-flaky-windows-test

restore: enable debug logging for flaky windows test
This commit is contained in:
Michael Eischer 2025-11-17 22:03:38 +01:00 committed by GitHub
commit a519d1e8df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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