Skip to content

Commit 3780c80

Browse files
committed
test: Skip ifup options test if it doesn't grok --help, not in CI
1 parent a6916d6 commit 3780c80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/t/test_ifup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ class TestIfup:
1111
def test_1(self, completion):
1212
assert completion.list
1313

14-
@pytest.mark.xfail(bool(os.environ.get("CI")),
15-
reason="Probably fails in CI")
16-
@pytest.mark.complete("ifup --")
14+
@pytest.mark.complete("ifup --", skipif="! ifup --help &>/dev/null")
1715
def test_2(self, completion):
1816
assert completion.list
1917

0 commit comments

Comments
 (0)