aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-04-06 10:13:54 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-04-07 16:40:15 -0700
commit3f656efe98639094d8944ca82518984d74a471cd (patch)
treecde82d9081726b55c4800a8621584a4c8fb0e2fd /test
parentc24cc19f4354056893aadf5d2c0008826d5d4714 (diff)
test_examples(): avoid false positives from fuse debug output
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_examples.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index 7b0b664..90d0218 100755
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -63,7 +63,13 @@ def test_hello(tmpdir, name, options):
@pytest.mark.parametrize("name", ('passthrough', 'passthrough_fh',
'passthrough_ll'))
@pytest.mark.parametrize("debug", (True, False))
-def test_passthrough(tmpdir, name, debug):
+def test_passthrough(tmpdir, name, debug, capfd):
+
+ # Avoid false positives from libfuse debug messages
+ if debug:
+ capfd.register_output(r'^ unique: [0-9]+, error: -[0-9]+ .+$',
+ count=0)
+
is_ll = (name == 'passthrough_ll')
mnt_dir = str(tmpdir.mkdir('mnt'))
src_dir = str(tmpdir.mkdir('src'))