test: fix spurious output from missing external binaries functions
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Mon, 28 Nov 2011 22:41:06 +0000 (02:41 +0400)
committerDavid Bremner <bremner@debian.org>
Thu, 1 Dec 2011 01:25:24 +0000 (17:25 -0800)
The grep(1) command used in the fake binary functions was missing the
quiet option.

test/test-lib.sh

index 9dcb2d2e2a2bc4a57c4356d182dc59f291e8bd7e..2861d881d0e9d1ca93f67d2068b5e66d8d13be03 100644 (file)
@@ -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 -e \" $name \" ||
+       echo -n \"\$test_subtest_missing_external_prereqs_\" | grep -qe \" $name \" ||
        test_subtest_missing_external_prereqs_=\"\$test_subtest_missing_external_prereqs_ $name\"
        false
 }"