]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/lib-gpg.sh
Merge branch 'tz/lib-gpg-prereq-fix'
[thirdparty/git.git] / t / lib-gpg.sh
index 114785586abde524fb13cb29e4b1f357ae9a3286..739e6ec35c11815d1969ac17001699cf72553fe7 100644 (file)
@@ -135,8 +135,9 @@ 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\"" &&
+       ssh-keygen -Overify-time=INVALID -Y check-novalidate -n "git" -s doesnotmatter 2>&1 | grep -q -F "Invalid \"verify-time\"" &&
 
        # Set up keys with key lifetimes
        ssh-keygen -t ed25519 -N "" -C "timeboxed valid key" -f "${GPGSSH_KEY_TIMEBOXEDVALID}" >/dev/null &&