]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/lib-gpg: require GPGSSH for GPGSSH_VERIFYTIME prereq
authorTodd Zullinger <tmz@pobox.com>
Tue, 6 Jun 2023 21:47:07 +0000 (17:47 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jun 2023 20:50:39 +0000 (13:50 -0700)
The GPGSSH_VERIFYTIME prequeq makes use of "${GNUPGHOME}" but does not
create it.  Require GPGSSH which creates the "${GNUPGHOME}" directory.

Additionally, it makes sense to require GPGSSH in GPGSSH_VERIFYTIME
because the latter builds on the former.  If we can't use GPGSSH,
there's little point in checking whether GPGSSH_VERIFYTIME is usable.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh

index 114785586abde524fb13cb29e4b1f357ae9a3286..db63aeb6ed63073619e929bae5efaca70bb94bb4 100644 (file)
@@ -135,6 +135,7 @@ test_lazy_prereq GPGSSH '
 '
 
 test_lazy_prereq GPGSSH_VERIFYTIME '
+       test_have_prereq GPGSSH &&
        # Check if ssh-keygen has a verify-time option by passing an invalid date to it
        ssh-keygen -Overify-time=INVALID -Y check-novalidate -s doesnotmatter 2>&1 | grep -q -F "Invalid \"verify-time\"" &&