diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-08-11 20:15:27 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-08-11 21:13:40 +0200 |
commit | 07636c619d3adee043e17ea8a713de8cbf148536 (patch) | |
tree | e8485152b3210d3c742bffdc81759b152497d10b /test/test_ctests.py | |
parent | c869f3132294ba0f59de9af2c5e39be730051b48 (diff) |
Skip tests that aren't supported under FreeBSD.
Diffstat (limited to 'test/test_ctests.py')
-rw-r--r-- | test/test_ctests.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/test_ctests.py b/test/test_ctests.py index ef643ef..4ad03fb 100644 --- a/test/test_ctests.py +++ b/test/test_ctests.py @@ -8,6 +8,7 @@ if __name__ == '__main__': import subprocess import pytest import platform +import sys from distutils.version import LooseVersion from util import (wait_for_mount, umount, cleanup, base_cmdline, safe_sleep, basename, fuse_test_marker) @@ -15,6 +16,8 @@ from os.path import join as pjoin pytestmark = fuse_test_marker() +@pytest.mark.skipif('bsd' in sys.platform, + reason='writeback requires Linux') @pytest.mark.parametrize("writeback", (False, True)) def test_write_cache(tmpdir, writeback): if writeback and LooseVersion(platform.release()) < '3.14': @@ -31,9 +34,10 @@ def test_write_cache(tmpdir, writeback): subprocess.check_call(cmdline) -@pytest.mark.parametrize("name", - ('notify_inval_inode', - 'notify_store_retrieve')) +names = [ 'notify_inval_inode' ] +if sys.platform == 'linux': + names.append('notify_store_retrieve') +@pytest.mark.parametrize("name", names) @pytest.mark.parametrize("notify", (True, False)) def test_notify1(tmpdir, name, notify): mnt_dir = str(tmpdir) |