From: Dmitry Kurochkin Date: Mon, 28 Nov 2011 22:41:07 +0000 (+0400) Subject: test: fix error messages for missing binary dependencies X-Git-Tag: 0.11_rc1~78 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de3d46e93cd5384e4fd0015a107a175accdffe5a;p=notmuch.git test: fix error messages for missing binary dependencies The fake missing binary functions check if the binary has already be added to the diagnostic message to avoid duplicates. Unfortunately, this check was buggy because the message string does not have the trailing space. --- diff --git a/test/test-lib.sh b/test/test-lib.sh index 2861d881..a9759570 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -556,7 +556,7 @@ test_declare_external_prereq () { hash $binary 2>/dev/null || eval " test_missing_external_prereq_${binary}_=t $binary () { - echo -n \"\$test_subtest_missing_external_prereqs_\" | grep -qe \" $name \" || + echo -n \"\$test_subtest_missing_external_prereqs_ \" | grep -qe \" $name \" || test_subtest_missing_external_prereqs_=\"\$test_subtest_missing_external_prereqs_ $name\" false }"