Skip to content

Commit c6c5373

Browse files
committed
test(tree): xfail options test if --help contains no options
Such as with busybox 1.36.1's `tree` applet.
1 parent daca089 commit c6c5373

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/t/test_tree.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ def test_basic(self, completion):
1010
def test_fromfile(self, completion):
1111
assert completion == ["bar", "bar bar.d/", "foo", "foo.d/"]
1212

13-
@pytest.mark.complete("tree -", require_cmd=True)
13+
@pytest.mark.complete(
14+
"tree -",
15+
require_cmd=True,
16+
xfail="! tree --help 2>&1 | command grep -qF -- ' -'",
17+
)
1418
def test_options(self, completion):
1519
assert completion
1620

0 commit comments

Comments
 (0)