#
# Tests of the fuse mount functionality.
+import pytest
import os
-import util
+from tests import util
+
+pytestmark = pytest.mark.skipif(
+ not util.have_fuse(), reason="bcachefs not built with fuse support.")
def test_mount(bfuse):
bfuse.mount()
bfuse.unmount()
bfuse.verify()
+@pytest.mark.skipif(util.ENABLE_VALGRIND, reason="test broken")
+def test_remount(bfuse):
+ bfuse.mount()
+ bfuse.unmount()
+ bfuse.mount()
+ bfuse.unmount()
+ bfuse.verify()
+
def test_lostfound(bfuse):
bfuse.mount()
assert ts.contains(post_st.st_mtime)
assert path.read_bytes() == b'test'
+
+ bfuse.unmount()
+ bfuse.verify()