Skip to content

Commit 78e56cf

Browse files
tmzullingergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Todd Zullinger <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0d1bd1d commit 78e56cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/lib-gpg.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ test_lazy_prereq GPGSSH '
135135
'
136136

137137
test_lazy_prereq GPGSSH_VERIFYTIME '
138+
test_have_prereq GPGSSH &&
138139
# Check if ssh-keygen has a verify-time option by passing an invalid date to it
139140
ssh-keygen -Overify-time=INVALID -Y check-novalidate -s doesnotmatter 2>&1 | grep -q -F "Invalid \"verify-time\"" &&
140141

0 commit comments

Comments
 (0)