]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - tests/test_fuse.py
Update valgrind suppressions file for urcu leak.
[bcachefs-tools-debian] / tests / test_fuse.py
index 877fd64c7c8f50343836221dba383a738c55fa3e..48288e6a9f43bf8677e5ef7c41c218eb7ecb5d06 100644 (file)
@@ -2,14 +2,26 @@
 #
 # 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()
 
@@ -219,3 +231,6 @@ def test_write(bfuse):
     assert ts.contains(post_st.st_mtime)
 
     assert path.read_bytes() == b'test'
+
+    bfuse.unmount()
+    bfuse.verify()