test-lib: fix test_str_contains
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Christian Couder committed
Jan 14, 2016 at 21:20 UTC
7e8052ef32c41890d644c1924a7107febbc4e698
1 file changed
+1
-1
test/sharness/lib/test-lib.sh
+1
-1
@@ -321,7 +321,7 @@ test_should_contain() {
321
test_str_contains() {
322
find=$1
323
shift
324
- echo "$@" | grep "$find" >/dev/null
324
+ echo "$@" | grep "\b$find\b" >/dev/null
325
}
326
327
disk_usage() {