Skip to content

Commit 6a2f397

Browse files
committed
test(cryptsetup): add a skip condition
1 parent d4e5693 commit 6a2f397

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/t/test_cryptsetup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def test_1(self, completion):
1010
def test_2(self, completion):
1111
assert completion
1212

13-
@pytest.mark.complete("cryptsetup luksE", require_cmd=True)
13+
@pytest.mark.complete(
14+
"cryptsetup luksE",
15+
require_cmd=True,
16+
skipif='! strings "$(type -P cryptsetup)" | grep -qFx luksErase',
17+
)
1418
def test_github_issue758(self, completion):
1519
assert completion == "rase"

0 commit comments

Comments
 (0)