Browse Source

lib/fs: Skip xattrs test on EOPNOTSUPP (fixes #8564) (#8565)

Simon Frei 3 years ago
parent
commit
0935886045
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/fs/basicfs_test.go

+ 2 - 1
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)