Skip to content

Commit

Permalink
test_getconf: skip if -a doesn't output any POSIX_V*
Browse files Browse the repository at this point in the history
Refs #312
  • Loading branch information
scop committed Apr 30, 2019
1 parent 5e706a4 commit 70afc1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/t/test_getconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ def test_2(self, completion):
def test_3(self, completion):
assert completion

@pytest.mark.complete("getconf -v ")
@pytest.mark.complete(
"getconf -v ", skipif="! getconf -a 2>&1 | command grep -q ^POSIX_V"
)
def test_4(self, completion):
assert completion

Expand Down

0 comments on commit 70afc1e

Please sign in to comment.