aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHereThereBeDragons <HereThereBeDragons@users.noreply.github.com>2024-01-08 17:38:36 +0100
committerNikolaus Rath <Nikolaus@rath.org>2024-01-29 08:43:58 +0000
commit67d28fb4b762989d895732f8b1aec9a4f69c0d56 (patch)
tree6f38e5aa51f5bbb8a6416633a74927d826abec60 /test
parent54007eeddeae22523b720e4a426081fbdecb6bdf (diff)
downloadlibfuse-67d28fb4b762989d895732f8b1aec9a4f69c0d56.tar.gz
make FUSE_CAP_EXPIRE_ONLY test depend on available cap and not on version
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_examples.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index a597f55..3b1fd1b 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -23,7 +23,7 @@ from tempfile import NamedTemporaryFile
from contextlib import contextmanager
from util import (wait_for_mount, umount, cleanup, base_cmdline,
safe_sleep, basename, fuse_test_marker, test_printcap,
- fuse_proto, powerset)
+ fuse_proto, fuse_caps, powerset)
from os.path import join as pjoin
pytestmark = fuse_test_marker()
@@ -349,7 +349,7 @@ def test_notify_inval_entry(tmpdir, only_expire, notify, output_checker):
cmdline.append('--no-notify')
if only_expire == "expire_entries":
cmdline.append('--only-expire')
- if fuse_proto < (7,38):
+ if "FUSE_CAP_EXPIRE_ONLY" not in fuse_caps:
pytest.skip('only-expire not supported by running kernel')
mount_process = subprocess.Popen(cmdline, stdout=output_checker.fd,
stderr=output_checker.fd)