From: Junio C Hamano Date: Wed, 25 Mar 2020 17:25:54 GMT Subject: Re: [PATCH v2 3/5] tests: turn GPG, GPGSM and RFC1991 into lazy prereqs Message-ID: In-Reply-To: <85457a7b61874e8e9f3af9c231451df0aba7a7b5.1585114881.git.gitgitgadget@gmail.com> "Johannes Schindelin via GitGitGadget" writes: > -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.