1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
From: Nikolaus Rath <Nikolaus@rath.org>
Date: Mon, 7 Mar 2016 13:22:36 -0800
Subject: Skip extended attribute tests under GNU/kFreeBSD
Origin: Debian
Forwarded: not-needed
Under GNU/kFreeBSD the setxattr and getxattr functions are dummies
that return ENOTIMPL.
---
test/test_api.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/test_api.py b/test/test_api.py
index 733111b..7b9312d 100755
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -22,6 +22,7 @@ import pytest
import platform
from copy import copy
from pickle import PicklingError
+import sys
def test_inquire_bits():
assert 0 < llfuse.get_ino_t_bits() < 256
@@ -66,6 +67,9 @@ def test_entry_res():
a.st_atime_ns = val*1e9
assert a.st_atime_ns / 1e9 == val
+
+@pytest.mark.skipif(sys.platform.startswith('gnukfreebsd'),
+ reason='GNU/kFreeBSD does not have xattr support')
def test_xattr():
with tempfile.NamedTemporaryFile() as fh:
key = 'user.new_attribute'
|