forked from TrueCloudLab/restic
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:
parent
36ed3add3a
commit
1a47ea4ab8
5 changed files with 36 additions and 7 deletions
|
@ -50,7 +50,7 @@ func TestTree(t *testing.T) {
|
|||
dir := createTempDir(t)
|
||||
defer func() {
|
||||
if TestCleanup {
|
||||
OK(t, os.RemoveAll(dir))
|
||||
RemoveAll(t, dir)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue