Re: [PATCH v2 3/5] tests: turn GPG, GPGSM and RFC1991 into lazy prereqs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 25, 2020, 17:25 UTC
- Message-ID
- <xmqqsghwwdlp.fsf@gitster.c.googlers.com>
- In-Reply-To
- <85457a7b61874e8e9f3af9c231451df0aba7a7b5.1585114881.git.gitgitgadget@gmail.com>
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 9 quoted lines
> -if test_have_prereq GPG &&
> - echo | gpg --homedir "${GNUPGHOME}" -b --rfc1991 >/dev/null 2>&1
> -then
> - test_set_prereq RFC1991
> -fi
> +test_lazy_prereq RFC1991 '
> + test_have_prereq GPG &&
> + echo | gpg --homedir "${GNUPGHOME}" -b --rfc1991 >/dev/null 2>&1
> +'OK. To make it fully lazy, we do need to test GPG while lazily checking for RFC1991. Makes sense.
Thanks.