aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Dmitry Kurochkin <dmitry.kurochkin@gmail.com>2011-11-29 02:41:07 +0400
committerGravatar David Bremner <bremner@debian.org>2011-11-30 17:26:10 -0800
commitde3d46e93cd5384e4fd0015a107a175accdffe5a (patch)
treea5b62a3e9df47fb72b3d1b835f8db74dbbdba0b5 /test
parent5635977543bdf9ce03c78d749d7a6d4fd41ae698 (diff)
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.
Diffstat (limited to 'test')
-rw-r--r--test/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
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
}"