Skip to content

Commit e9056d1

Browse files
authored
Merge pull request #1533 from yedayak/ifupdown-require-cmd
test(ifup, ifdown): Require cmd for completions
2 parents 225b8ab + 3bf88fd commit e9056d1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

test/t/test_ifdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TestIfdown:
1111
reason="There won't be any configured interfaces without network",
1212
)
1313
@pytest.mark.xfail(in_container(), reason="Probably fails in a container")
14-
@pytest.mark.complete("ifdown ")
14+
@pytest.mark.complete("ifdown ", require_cmd=True)
1515
def test_1(self, completion):
1616
assert completion
1717

test/t/test_ifup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class TestIfup:
1111
reason="There won't be any configured interfaces without network",
1212
)
1313
@pytest.mark.xfail(in_container(), reason="Probably fails in a container")
14-
@pytest.mark.complete("ifup ")
14+
@pytest.mark.complete("ifup ", require_cmd=True)
1515
def test_1(self, completion):
1616
assert completion
1717

test/test-cmd-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ hwclock
149149
iconv
150150
identify
151151
idn
152+
ifdown
152153
ifstat
153154
iftop
154155
ifup

0 commit comments

Comments
 (0)