aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ctests.py
diff options
context:
space:
mode:
authorBernd Schubert <bernd.schubert@fastmail.fm>2024-03-20 13:30:12 +0100
committerGitHub <noreply@github.com>2024-03-20 13:30:12 +0100
commit694f3d5231e0ec4b25416db97ac113b4f89630d6 (patch)
tree860e0d6c96cd91858c2361a935b8fdd14532b68e /test/test_ctests.py
parenta6a219f5344a5c09cec34416818342ac220a0df2 (diff)
parent425f52a1f515cd0e2148a427330bb82c96b18856 (diff)
downloadlibfuse-694f3d5231e0ec4b25416db97ac113b4f89630d6.tar.gz
Merge pull request #904 from bsbernd/s-bit-fusermount
Add back s-bit for compiled fusermount
Diffstat (limited to 'test/test_ctests.py')
-rw-r--r--test/test_ctests.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test_ctests.py b/test/test_ctests.py
index 951a34b..55db156 100644
--- a/test/test_ctests.py
+++ b/test/test_ctests.py
@@ -9,10 +9,11 @@ import subprocess
import pytest
import platform
import sys
+import os
from looseversion import LooseVersion
from util import (wait_for_mount, umount, cleanup, base_cmdline,
safe_sleep, basename, fuse_test_marker, fuse_caps,
- fuse_proto)
+ fuse_proto, create_tmpdir)
from os.path import join as pjoin
import os.path
@@ -29,6 +30,9 @@ def test_write_cache(tmpdir, writeback, output_checker):
# deadlock in valgrind, it probably assumes that until close() returns,
# control does not come to the program.
mnt_dir = str(tmpdir)
+ print("mnt_dir: '" + mnt_dir + "'")
+ create_tmpdir(mnt_dir)
+
cmdline = [ pjoin(basename, 'test', 'test_write_cache'),
mnt_dir ]
if writeback:
@@ -50,6 +54,7 @@ if fuse_proto >= (7,15):
@pytest.mark.parametrize("notify", (True, False))
def test_notify1(tmpdir, name, notify, output_checker):
mnt_dir = str(tmpdir)
+ create_tmpdir(mnt_dir)
cmdline = base_cmdline + \
[ pjoin(basename, 'example', name),
'-f', '--update-interval=1', mnt_dir ]
@@ -70,6 +75,7 @@ def test_notify1(tmpdir, name, notify, output_checker):
else:
assert read1 == read2
except:
+ print("Failure in notify test: '" + str(cmdline) + "'")
cleanup(mount_process, mnt_dir)
raise
else:
@@ -80,6 +86,7 @@ def test_notify1(tmpdir, name, notify, output_checker):
@pytest.mark.parametrize("notify", (True, False))
def test_notify_file_size(tmpdir, notify, output_checker):
mnt_dir = str(tmpdir)
+ create_tmpdir(mnt_dir)
cmdline = base_cmdline + \
[ pjoin(basename, 'example', 'invalidate_path'),
'-f', '--update-interval=1', mnt_dir ]