From 4fe8c95274ab34dd17beff13fd3341cfbe654370 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 9 Oct 2016 21:46:39 -0700 Subject: Added cuse unit test. --- test/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/util.py') diff --git a/test/util.py b/test/util.py index 9c379f0..2160f70 100644 --- a/test/util.py +++ b/test/util.py @@ -4,10 +4,11 @@ import pytest import os import time -def wait_for_mount(mount_process, mnt_dir): +def wait_for_mount(mount_process, mnt_dir, + test_fn=os.path.ismount): elapsed = 0 while elapsed < 30: - if os.path.ismount(mnt_dir): + if test_fn(mnt_dir): return True if mount_process.poll() is not None: pytest.fail('file system process terminated prematurely') -- cgit v1.2.3