mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
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:
parent
5635977543
commit
de3d46e93c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}"
|
}"
|
||||||
|
|
Loading…
Reference in a new issue