]> 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 da0a7a42f59bd260a10503d6afdc2c0a7ced8086..48288e6a9f43bf8677e5ef7c41c218eb7ecb5d06 100644 (file)
@@ -4,7 +4,7 @@
 
 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.")
@@ -14,6 +14,14 @@ def test_mount(bfuse):
     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()
 
@@ -223,3 +231,6 @@ def test_write(bfuse):
     assert ts.contains(post_st.st_mtime)
 
     assert path.read_bytes() == b'test'
+
+    bfuse.unmount()
+    bfuse.verify()