From 3033dbc22e7e593fc8489ce77ef285cfbaf8e540 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Tue, 20 Jun 2017 17:33:51 -0700 Subject: Transition from getdir() to readdir(), temporarily disable cache This commit enables the use of readdir() instead of getdir(). It also completely disables the cache and the nullpath_ok feature. This will be fixed in the next commits. --- test/test_sshfs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_sshfs.py b/test/test_sshfs.py index e173f64..b167f51 100755 --- a/test/test_sshfs.py +++ b/test/test_sshfs.py @@ -31,7 +31,8 @@ def name_generator(__ctr=[0]): @pytest.mark.parametrize("debug", (False, True)) @pytest.mark.parametrize("cache_timeout", (0, 1)) -def test_sshfs(tmpdir, debug, cache_timeout, capfd): +@pytest.mark.parametrize("sync_rd", (True, False)) +def test_sshfs(tmpdir, debug, cache_timeout, sync_rd, capfd): # Avoid false positives from debug messages #if debug: @@ -58,6 +59,9 @@ def test_sshfs(tmpdir, debug, cache_timeout, capfd): if debug: cmdline += [ '-o', 'sshfs_debug' ] + if sync_rd: + cmdline += [ '-o', 'sync_readdir' ] + # SSHFS Cache if cache_timeout == 0: cmdline += [ '-o', 'cache=no' ] -- cgit v1.2.3