From 65075085b589fd75830d64f187f98355842678d7 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Tue, 9 Jul 2019 05:29:49 -0700 Subject: 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. --- test/test_examples.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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) -- cgit v1.2.1