From 3f656efe98639094d8944ca82518984d74a471cd Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Thu, 6 Apr 2017 10:13:54 -0700 Subject: test_examples(): avoid false positives from fuse debug output --- test/test_examples.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') 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')) -- cgit v1.2.3