diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-04-06 10:13:54 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-04-07 16:40:15 -0700 |
commit | 3f656efe98639094d8944ca82518984d74a471cd (patch) | |
tree | cde82d9081726b55c4800a8621584a4c8fb0e2fd /test | |
parent | c24cc19f4354056893aadf5d2c0008826d5d4714 (diff) |
test_examples(): avoid false positives from fuse debug output
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_examples.py | 8 |
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')) |