diff options
author | Simon Frei <freisim93@gmail.com> | 2022-10-01 08:48:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 08:48:00 +0200 |
commit | 0935886045bce20ed648e27e72b9faf5e5803130 (patch) | |
tree | 0d881950a15b94a69524cd9e92eb47f05a0c3d49 | |
parent | fd0a6225aadce9cee19ab058465fa5c8658f0be9 (diff) |
lib/fs: Skip xattrs test on EOPNOTSUPP (fixes #8564) (#8565)
-rw-r--r-- | lib/fs/basicfs_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fs/basicfs_test.go b/lib/fs/basicfs_test.go index 36679500a5..72a8e8ff2d 100644 --- a/lib/fs/basicfs_test.go +++ b/lib/fs/basicfs_test.go @@ -15,6 +15,7 @@ import ( "sort" "strconv" "strings" + "syscall" "testing" "time" @@ -590,7 +591,7 @@ func TestXattr(t *testing.T) { } // Set the xattrs, read them back and compare - if err := tfs.SetXattr("/test", attrs, noopXattrFilter{}); errors.Is(err, ErrXattrsNotSupported) { + if err := tfs.SetXattr("/test", attrs, noopXattrFilter{}); errors.Is(err, ErrXattrsNotSupported) || errors.Is(err, syscall.EOPNOTSUPP) { t.Skip("xattrs not supported") } else if err != nil { t.Fatal(err) |