summaryrefslogtreecommitdiff
path: root/t/lib-gpg.sh
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2014-12-12 08:50:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-12 18:26:08 (GMT)
commitc0e0ed6efe497902a2e2ce5fb1586577a27eea1b (patch)
treeb34083336667d9b22d21e253b112021c0c075c49 /t/lib-gpg.sh
parentb41a36e635803f1dc011007e836ae244f9ae04c1 (diff)
downloadgit-c0e0ed6efe497902a2e2ce5fb1586577a27eea1b.zip
git-c0e0ed6efe497902a2e2ce5fb1586577a27eea1b.tar.gz
git-c0e0ed6efe497902a2e2ce5fb1586577a27eea1b.tar.bz2
tests: skip RFC1991 tests for gnupg 2.1
GnuPG >= 2.1.0 no longer supports RFC1991, so skip these tests. Signed-off-by: Christian Hesse <mail@eworm.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/lib-gpg.sh')
-rwxr-xr-xt/lib-gpg.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/lib-gpg.sh b/t/lib-gpg.sh
index 4e57942..7e077b0 100755
--- a/t/lib-gpg.sh
+++ b/t/lib-gpg.sh
@@ -26,6 +26,10 @@ else
gpg --homedir "${GNUPGHOME}" --import-ownertrust \
"$TEST_DIRECTORY"/lib-gpg/ownertrust
test_set_prereq GPG
+ if echo | gpg --homedir "${GNUPGHOME}" -b --rfc1991 >/dev/null 2>&1
+ then
+ test_set_prereq RFC1991
+ fi
;;
esac
fi