summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2019-07-09 05:29:49 -0700
committerNikolaus Rath <Nikolaus@rath.org>2019-07-09 05:29:49 -0700
commit65075085b589fd75830d64f187f98355842678d7 (patch)
treef22967c78af01604097d885f328bc79c623f8895 /test
parenta0b9cb9d7603d4eda3fdb18952a30c8d914fa85c (diff)
downloadfuse-65075085b589fd75830d64f187f98355842678d7.tar.gz
Do not run passthrough test when caching is active.
Readdir caching means that direct modifications to the source directory will not be seen immediately, so the test becomes flaky. Fixes: #416.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_examples.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index 26f3b92..5d6dacc 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -194,7 +194,8 @@ def test_passthrough_hp(short_tmpdir, cache, output_checker):
tst_open_read(src_dir, mnt_dir)
tst_open_write(src_dir, mnt_dir)
tst_create(mnt_dir)
- tst_passthrough(src_dir, mnt_dir)
+ if not cache:
+ tst_passthrough(src_dir, mnt_dir)
tst_append(src_dir, mnt_dir)
tst_seek(src_dir, mnt_dir)
tst_mkdir(mnt_dir)