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.
This commit is contained in:
Dmitry Kurochkin 2011-11-29 02:41:07 +04:00 committed by David Bremner
parent 5635977543
commit de3d46e93c

View file

@ -556,7 +556,7 @@ test_declare_external_prereq () {
hash $binary 2>/dev/null || eval " hash $binary 2>/dev/null || eval "
test_missing_external_prereq_${binary}_=t test_missing_external_prereq_${binary}_=t
$binary () { $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\" test_subtest_missing_external_prereqs_=\"\$test_subtest_missing_external_prereqs_ $name\"
false false
}" }"