aboutsummaryrefslogtreecommitdiff
path: root/test/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/util.py')
-rw-r--r--test/util.py5
1 files changed, 3 insertions, 2 deletions
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')