forked from TrueCloudLab/restic
restorer: Skip preallocate test if not supported by the filesystem
This commit is contained in:
parent
814a399e4c
commit
f70aca6f6f
1 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,7 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
"strconv"
|
||||
"syscall"
|
||||
"testing"
|
||||
|
||||
"github.com/restic/restic/internal/fs"
|
||||
|
@ -24,6 +25,9 @@ func TestPreallocate(t *testing.T) {
|
|||
}()
|
||||
|
||||
err = preallocateFile(wr, i)
|
||||
if err == syscall.ENOTSUP {
|
||||
t.SkipNow()
|
||||
}
|
||||
test.OK(t, err)
|
||||
|
||||
fi, err := wr.Stat()
|
||||
|
|
Loading…
Reference in a new issue