diff options
author | Dmitry Kurochkin <dmitry.kurochkin@gmail.com> | 2011-11-29 02:41:04 +0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2011-11-30 17:22:28 -0800 |
commit | 716e9a45b9cfc44618edfcc2fbf9b7a066b37f1a (patch) | |
tree | 5825a3f4472a711e6814aef1685b9cabe793cd06 | |
parent | 9e805b6a5894c4e42deb78ad33523e550d157c75 (diff) |
test: fix test_require_external_prereq()
test_missing_external_prereq_${binary}_ variable indicates that the
binary is missing. It must be set in test_declare_external_prereq()
outside of the fake $binary() function.
-rw-r--r-- | test/test-lib.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index 11e66465..d7282ff6 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -554,8 +554,8 @@ test_declare_external_prereq () { test "$#" = 2 && name=$2 || name="$binary(1)" hash $binary 2>/dev/null || eval " -$binary () { test_missing_external_prereq_${binary}_=t +$binary () { echo -n \"\$test_subtest_missing_external_prereqs_\" | grep -e \" $name \" || test_subtest_missing_external_prereqs_=\"$test_subtest_missing_external_prereqs_ $name\" false |