t/lib-gpg: require GPGSSH for GPGSSH_VERIFYTIME prereq

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>

Todd Zullinger committed Jun 6, 2023 at 17:47 UTC 78e56cff69df290058ddefe18637de973f91b39d
1 file changed +1
t/lib-gpg.sh
+1
@@ -135,6 +135,7 @@ test_lazy_prereq GPGSSH '
135 '
136
137 test_lazy_prereq GPGSSH_VERIFYTIME '
138 + test_have_prereq GPGSSH &&
139 # Check if ssh-keygen has a verify-time option by passing an invalid date to it
140 ssh-keygen -Overify-time=INVALID -Y check-novalidate -s doesnotmatter 2>&1 | grep -q -F "Invalid \"verify-time\"" &&
141