summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 16:05:59 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-09-11 16:05:59 -0400
commitbd2b16fbbe43e5d879ee85da7259bdd649e4394e (patch)
tree8875ad3362add12647983a004c11177a92c5f978 /test
parentf7ae2ffa3341d63528d4322bf5ac988ed6c0b65e (diff)
libreblacklist: Fix a bug in the -h flag, adjust the unit test to catch it.
Diffstat (limited to 'test')
-rw-r--r--test/lib-blacklist-test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib-blacklist-test.sh b/test/lib-blacklist-test.sh
index 9c8e84d..0083242 100644
--- a/test/lib-blacklist-test.sh
+++ b/test/lib-blacklist-test.sh
@@ -127,7 +127,7 @@ it_displays_help_when_given_h() {
it_displays_help_when_given_h_cat() {
LANG=C libreblacklist -h cat >$tmpdir/stdout 2>$tmpdir/stderr
- [[ "$(sed 1q $tmpdir/stdout)" =~ 'Usage: libreblacklist cat' ]]
+ [[ "$(sed 1q $tmpdir/stdout)" == 'Usage: libreblacklist cat' ]]
[[ -z "$(cat $tmpdir/stderr)" ]]
}