Skip to content

Commit

Permalink
test: Skip scrub -p test when its --help doesn't list available patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 12, 2018
1 parent 665088a commit 9039d77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/lib/completions/scrub.exp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ sync_after_int
assert_complete_any "scrub -"
sync_after_int

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


Expand Down

0 comments on commit 9039d77

Please sign in to comment.