Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/t/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ class TestService:
sys.platform == "darwin",
reason="Service completion not available on macOS",
)
@pytest.mark.complete("service ")
@pytest.mark.complete(
"service ",
# Skip if we don't have a way to find services
skipif="! (type systemctl || type service || type initctl || "
"[[ -d /etc/rc.d/init.d || "
"-d /etc/init.d || "
"-d /etc/xinetd.d || "
"-f /etc/slackware-version ]])",
)
def test_1(self, completion):
assert completion