diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 21:46:39 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-09 22:03:07 -0700 |
commit | 4fe8c95274ab34dd17beff13fd3341cfbe654370 (patch) | |
tree | 35aeae7be009bc77afca8e1786db895faa88dd7c /test/util.py | |
parent | 35ce627e35d1e293b25cfa8bdec2fb82c7da4630 (diff) |
Added cuse unit test.
Diffstat (limited to 'test/util.py')
-rw-r--r-- | test/util.py | 5 |
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') |