commit 096e2aca6c6baea1bfe8023712a9ed5cca3cdec4 from: Sergey Bronnikov date: Tue Apr 02 12:19:09 2024 UTC test: skip test_link on freebsd The testcase `test_link` passed on FreeBSD 12.2 and becom broken on FreeBSD 14.0. The test failed with an error below: File "/tmp/cirrus-ci-build/unreliablefs/tests/test_unreliablefs.py", line 262, in test_link os.link(name1, name2) OSError: [Errno 5] Input/output error: '/tmp/pytest-of-root/pytest-0/test_link0/mnt/testfile_14' -> '/tmp/pytest-of-root/pytest-0/test_link0/mnt/testfile_15' commit - 10d50d0a6245d0a7f7378a46c6f520a9db6931ef commit + 096e2aca6c6baea1bfe8023712a9ed5cca3cdec4 blob - f2e57e025e1f1b451d11e622b0de242f65444ff5 blob + 7efc08c9e944bef4274c1c1e0269dbd1d75f3b7f --- unreliablefs/tests/test_unreliablefs.py +++ unreliablefs/tests/test_unreliablefs.py @@ -26,6 +26,11 @@ from os.path import join as pjoin def is_no_xattr_support(): return sys.platform.startswith("freebsd") or \ sys.platform == "openbsd" + +def is_freebsd(): + return sys.platform.startswith("freebsd") + +no_freebsd_support = is_freebsd() no_xattr_support = is_no_xattr_support() @@ -249,6 +254,7 @@ def test_statvfs(setup_unreliablefs): mnt_dir, src_dir = setup_unreliablefs os.statvfs(mnt_dir) +@pytest.mark.skipif(no_freebsd_support, reason="no freebsd support") def test_link(setup_unreliablefs): mnt_dir, src_dir = setup_unreliablefs name1 = pjoin(mnt_dir, name_generator())