Commit 525c1b46 authored by Thomas Goirand's avatar Thomas Goirand

Attempt to fix unit test.

parent 17e17e40
Description: Attempt to fix
Author: Thomas Goirand <zigo@debian.org>
---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:
Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-07-15
--- swift-2.21.10+2019.07.13+git.4643412bd1.orig/test/unit/__init__.py
+++ swift-2.21.10+2019.07.13+git.4643412bd1/test/unit/__init__.py
@@ -1367,7 +1367,7 @@ 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
sphinx_reproducible_build.patch
syslog_log_name.patch
fix-xattr_supported_check.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment