From 570933394e744cf2f55792e9f49cbe369c530a6c Mon Sep 17 00:00:00 2001 From: Amir Goldstein Date: Tue, 22 Jun 2021 14:03:22 +0300 Subject: 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 --- test/test_examples.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/test_examples.py') 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) -- cgit v1.2.3