Skip to content

Commit 9039d77

Browse files
committed
test: Skip scrub -p test when its --help doesn't list available patterns
1 parent 665088a commit 9039d77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/lib/completions/scrub.exp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ sync_after_int
1717
assert_complete_any "scrub -"
1818
sync_after_int
1919

20-
assert_complete_any "scrub -p "
20+
if {[assert_exec {sh -c "(scrub 2>&1 --help || :) | command grep ^Available"} "" "" "unsupported"]} {
21+
# Not all scrub versions list available patterns in --help output
22+
assert_complete_any "scrub -p "
23+
}
2124
sync_after_int
2225

2326

0 commit comments

Comments
 (0)