summaryrefslogtreecommitdiff
path: root/test/t/test_sysctl.py
blob: f8db50bd417a896820db8b259eed13f694a3fa63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import pytest


class TestSysctl:
    @pytest.mark.complete("sysctl -", require_cmd=True)
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete(
        "sysctl kern",
        require_cmd=True,
        xfail="! sysctl -N -a 2>/dev/null | command grep -q ^kern",
    )
    def test_2(self, completion):
        assert completion