summaryrefslogtreecommitdiff
path: root/test/t/test_sysctl.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_sysctl.py')
-rw-r--r--test/t/test_sysctl.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/t/test_sysctl.py b/test/t/test_sysctl.py
index 773b5910..f8db50bd 100644
--- a/test/t/test_sysctl.py
+++ b/test/t/test_sysctl.py
@@ -2,13 +2,14 @@ import pytest
class TestSysctl:
- @pytest.mark.complete("sysctl -")
+ @pytest.mark.complete("sysctl -", require_cmd=True)
def test_1(self, completion):
assert completion
@pytest.mark.complete(
"sysctl kern",
- skipif="! sysctl -N -a 2>/dev/null | " "command grep -q ^kern",
+ require_cmd=True,
+ xfail="! sysctl -N -a 2>/dev/null | command grep -q ^kern",
)
def test_2(self, completion):
assert completion