Fix test_parse_get_node_args

Looks like xattr_supported_check was missing ERANGE

Change-Id: I82263e48e836f38f77d81593c8435f64a4728b5d
This commit is contained in:
Thomas Goirand 2019-07-15 19:53:14 +02:00
parent 4643412bd1
commit 12a7b42062
1 changed files with 2 additions and 1 deletions

View File

@ -1367,7 +1367,8 @@ def xattr_supported_check():
fd, tmppath = mkstemp()
xattr.setxattr(fd, 'user.swift.testing_key', big_val)
except IOError as e:
if errno.errorcode.get(e.errno) in ('ENOSPC', 'ENOTSUP', 'EOPNOTSUPP'):
if errno.errorcode.get(e.errno) in ('ENOSPC', 'ENOTSUP', 'EOPNOTSUPP',
'ERANGE'):
# filesystem does not support xattr of this size
return False
raise