mirror of
https://github.com/restic/restic.git
synced 2026-04-11 15:48:51 +00:00
test helpers: add RemoveAll and ResetReadOnly
This is mainly needed in Windows, where files and dirs cannot be removed unless they are writeable.
This commit is contained in:
@@ -109,7 +109,7 @@ func TestNodeRestoreAt(t *testing.T) {
|
||||
|
||||
defer func() {
|
||||
if TestCleanup {
|
||||
OK(t, os.RemoveAll(tempdir))
|
||||
RemoveAll(t, tempdir)
|
||||
} else {
|
||||
t.Logf("leaving tempdir at %v", tempdir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user