Skip to content

Commit be1854f

Browse files
committed
test(umount): skip Linux specific tests on non-Linux
1 parent d57c26b commit be1854f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/t/test_umount.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import sys
2+
13
import pytest
24

35
from conftest import assert_bash_exec
@@ -11,6 +13,8 @@ def dummy_mnt(self, request, bash):
1113
(correctly) uses absolute paths. So we create a custom completion which
1214
reads from a file in our text fixture instead.
1315
"""
16+
if sys.platform != "linux":
17+
pytest.skip("Linux specific")
1418
assert_bash_exec(bash, "unset COMPREPLY cur; unset -f _mnt_completion")
1519
assert_bash_exec(
1620
bash,
@@ -75,6 +79,7 @@ def test_mnt_label_space(self, completion, dummy_mnt):
7579
def test_mnt_label_quote(self, completion, dummy_mnt):
7680
assert completion == r"ian-it\'s\ awesome"
7781

82+
@pytest.mark.skipif(sys.platform != "linux", reason="Linux specific")
7883
def test_linux_fstab_unescape(self, bash):
7984
assert_bash_exec(bash, r"var=one\'two\\040three\\")
8085
assert_bash_exec(bash, "__linux_fstab_unescape var")

0 commit comments

Comments
 (0)