aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-06-20 17:33:51 -0700
committerNikolaus Rath <Nikolaus@rath.org>2017-06-22 14:22:58 -0700
commit3033dbc22e7e593fc8489ce77ef285cfbaf8e540 (patch)
tree70752aefbdf1e0c557201ce3e8ed320eccb650b2 /test
parent5f4619bac33a544af4da6e7d28bb4d7dbe45ae92 (diff)
downloadsshfs-3033dbc22e7e593fc8489ce77ef285cfbaf8e540.tar
sshfs-3033dbc22e7e593fc8489ce77ef285cfbaf8e540.tar.gz
sshfs-3033dbc22e7e593fc8489ce77ef285cfbaf8e540.tar.bz2
sshfs-3033dbc22e7e593fc8489ce77ef285cfbaf8e540.zip
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.
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_sshfs.py6
1 files changed, 5 insertions, 1 deletions
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' ]