diff options
Diffstat (limited to 'test/t/test_invoke_rc_d.py')
-rw-r--r-- | test/t/test_invoke_rc_d.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/t/test_invoke_rc_d.py b/test/t/test_invoke_rc_d.py index 61e2987..5ef768c 100644 --- a/test/t/test_invoke_rc_d.py +++ b/test/t/test_invoke_rc_d.py @@ -1,8 +1,14 @@ +import sys + import pytest @pytest.mark.bashcomp(cmd="invoke-rc.d") class TestInvokeRcD: + @pytest.mark.xfail( + sys.platform == "darwin", + reason="Service completion not available on macOS", + ) @pytest.mark.complete("invoke-rc.d ") def test_1(self, completion): assert completion @@ -10,5 +16,6 @@ class TestInvokeRcD: @pytest.mark.complete("invoke-rc.d --no-fallback --") def test_2(self, completion): """Test already specified option is not offered.""" - assert completion + if sys.platform != "darwin": # no service completion + assert completion assert "--no-fallback" not in completion |