From: Nikolaus Rath Date: Wed, 5 Apr 2017 23:49:39 +0000 (-0700) Subject: Actually test passthrough* examples X-Git-Tag: fuse-3.0.1~6 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=eb972114156dc5624a50b81562040e8af06cb7e3;p=qemu-gpiodev%2Flibfuse.git Actually test passthrough* examples Since os.path.join() interprets leading slashes, we were actually never accessing the mountpoint and doing all the tests in the source directory. Fixes: #139 --- diff --git a/test/test_examples.py b/test/test_examples.py index 18e858b..d508d0f 100755 --- a/test/test_examples.py +++ b/test/test_examples.py @@ -82,7 +82,7 @@ def test_passthrough(tmpdir, name, debug, capfd): mount_process = subprocess.Popen(cmdline) try: wait_for_mount(mount_process, mnt_dir) - work_dir = pjoin(mnt_dir, src_dir) + work_dir = mnt_dir + src_dir tst_statvfs(work_dir) tst_readdir(src_dir, work_dir)