Skip to content

Commit f14c4d0

Browse files
committed
test(time): use bash as canary command
Mostly just to avoid triggering typos with find's partial args, and bash is kind of likely to be present.
1 parent b056568 commit f14c4d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/t/test_time.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ def test_command(self, completion):
1414
"""
1515
assert completion == "ed" or "_comp_delimited" in completion
1616

17-
@pytest.mark.complete("time -p find -typ")
17+
@pytest.mark.complete(
18+
"time -p bash --", skipif="! bash --help &>/dev/null"
19+
)
1820
def test_2(self, completion):
19-
assert completion # find's options
21+
assert "--login" in completion # bash's options
2022

2123
@pytest.mark.complete("time shared/bin/")
2224
def test_3(self, completion):

0 commit comments

Comments
 (0)