aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_examples.py
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2021-06-22 14:03:22 +0300
committerNikolaus Rath <Nikolaus@rath.org>2021-06-23 11:46:19 +0100
commit570933394e744cf2f55792e9f49cbe369c530a6c (patch)
treeea1ede80b9bba84ecd95d44ab5552fc263778f0c /test/test_examples.py
parenta1e41676e34096abe21d202f4c4e440fd1257672 (diff)
downloadlibfuse-570933394e744cf2f55792e9f49cbe369c530a6c.tar.gz
Do not run unlinked files test on passthrough_hp with old kernels
test_syscalls unlinked testfiles check fails on passthourhg_hp without the kernel commit "fuse: fix illegal access to inode with reused nodeid" queued for kernel 5.14 [1]. Make this check opt-in and do not run it with kernel version before 5.14. [1] https://lore.kernel.org/linux-fsdevel/CAJfpegtGKjeK8E5QsHKF0=re1J9wVHuGRVgg9NDJ_OOwQdCUNg@mail.gmail.com/ Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'test/test_examples.py')
-rwxr-xr-xtest/test_examples.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index 880fbad..97eebfc 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -17,6 +17,8 @@ import tempfile
import time
import errno
import sys
+import platform
+from distutils.version import LooseVersion
from tempfile import NamedTemporaryFile
from contextlib import contextmanager
from util import (wait_for_mount, umount, cleanup, base_cmdline,
@@ -240,6 +242,11 @@ def test_passthrough_hp(short_tmpdir, cache, output_checker):
if not cache:
syscall_test_cmd = [ os.path.join(basename, 'test', 'test_syscalls'),
mnt_dir, ':' + src_dir ]
+ # unlinked testfiles check fails without kernel fix
+ # "fuse: fix illegal access to inode with reused nodeid"
+ # so opt-in for this test from kernel 5.14
+ if LooseVersion(platform.release()) >= '5.14':
+ syscall_test_cmd.append('-u')
subprocess.check_call(syscall_test_cmd)
except:
cleanup(mount_process, mnt_dir)