mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-03 00:00:07 +03:00
f574ca05f8
Signed-off-by: Justin Husted <sigstop@gmail.com>
19 lines
324 B
Python
19 lines
324 B
Python
#!/usr/bin/python3
|
|
#
|
|
# pytest fixture definitions.
|
|
|
|
import pytest
|
|
import util
|
|
|
|
@pytest.fixture
|
|
def bfuse(tmpdir):
|
|
'''A test requesting a "bfuse" is given one via this fixture.'''
|
|
|
|
dev = util.format_1g(tmpdir)
|
|
mnt = util.mountpoint(tmpdir)
|
|
bf = util.BFuse(dev, mnt)
|
|
|
|
yield bf
|
|
|
|
bf.unmount(timeout=5.0)
|