Johannes Sixt  committed 64fb19b

t7004-tag: Skip more tests if gpg is not available.

This test was already careful enough to skip signed tag tests if gpg
is not available, but it must also skip all verify tests, even those
that are about non-signed tags, because they also invoke gpg.

Signed-off-by: Johannes Sixt <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 69fe5ef

Comments (0)

Files changed (1)

File t/

 	git diff expect actual
+# subsequent tests require gpg; check if it is available
+gpg --version >/dev/null
+if [ $? -eq 127 ]; then
+	echo "gpg not found - skipping tag signing and verification tests"
+	test_done
+	exit
 # trying to verify annotated non-signed tags:
 test_expect_success \
 # creating and verifying signed tags:
-gpg --version >/dev/null
-if [ $? -eq 127 ]; then
-	echo "Skipping signed tags tests, because gpg was not found"
-	test_done
-	exit
 # As said here:
 # the gpg version 1.0.6 didn't parse trust packets correctly, so for
 # that version, creation of signed tags using the generated key fails.