From 7e8052ef32c41890d644c1924a7107febbc4e698 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Thu, 14 Jan 2016 21:20:51 +0100 Subject: [PATCH] test-lib: fix test_str_contains License: MIT Signed-off-by: Christian Couder --- test/sharness/lib/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sharness/lib/test-lib.sh b/test/sharness/lib/test-lib.sh index 540380221..f88ac6b2c 100644 --- a/test/sharness/lib/test-lib.sh +++ b/test/sharness/lib/test-lib.sh @@ -321,7 +321,7 @@ test_should_contain() { test_str_contains() { find=$1 shift - echo "$@" | grep "$find" >/dev/null + echo "$@" | grep "\b$find\b" >/dev/null } disk_usage() {