diff options
author | Simon Frei <freisim93@gmail.com> | 2022-10-01 08:48:00 +0200 |
---|---|---|
committer | Jakob Borg <jakob@kastelo.net> | 2022-10-02 08:58:19 +0200 |
commit | 81bdde79eaead03683d51c47695b8923b7f5c8b0 (patch) | |
tree | bf45722d8bc6eb1fe20edb0934c7f37c36a398c2 | |
parent | f38df0dadb03a61f8eddf602d1b404628d702a63 (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) |