Skip to content

Commit c0e0ed6

Browse files
eworm-degitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b41a36e commit c0e0ed6

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

t/lib-gpg.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ else
2626
gpg --homedir "${GNUPGHOME}" --import-ownertrust \
2727
"$TEST_DIRECTORY"/lib-gpg/ownertrust
2828
test_set_prereq GPG
29+
if echo | gpg --homedir "${GNUPGHOME}" -b --rfc1991 >/dev/null 2>&1
30+
then
31+
test_set_prereq RFC1991
32+
fi
2933
;;
3034
esac
3135
fi

t/t7004-tag.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ test_expect_success GPG \
10811081
get_tag_header rfc1991-signed-tag $commit commit $time >expect
10821082
echo "RFC1991 signed tag" >>expect
10831083
echo '-----BEGIN PGP MESSAGE-----' >>expect
1084-
test_expect_success GPG \
1084+
test_expect_success GPG,RFC1991 \
10851085
'creating a signed tag with rfc1991' '
10861086
echo "rfc1991" >gpghome/gpg.conf &&
10871087
git tag -s -m "RFC1991 signed tag" rfc1991-signed-tag $commit &&
@@ -1095,21 +1095,21 @@ cp "$1" actual
10951095
EOF
10961096
chmod +x fakeeditor
10971097

1098-
test_expect_success GPG \
1098+
test_expect_success GPG,RFC1991 \
10991099
'reediting a signed tag body omits signature' '
11001100
echo "rfc1991" >gpghome/gpg.conf &&
11011101
echo "RFC1991 signed tag" >expect &&
11021102
GIT_EDITOR=./fakeeditor git tag -f -s rfc1991-signed-tag $commit &&
11031103
test_cmp expect actual
11041104
'
11051105

1106-
test_expect_success GPG \
1106+
test_expect_success GPG,RFC1991 \
11071107
'verifying rfc1991 signature' '
11081108
echo "rfc1991" >gpghome/gpg.conf &&
11091109
git tag -v rfc1991-signed-tag
11101110
'
11111111

1112-
test_expect_success GPG \
1112+
test_expect_success GPG,RFC1991 \
11131113
'list tag with rfc1991 signature' '
11141114
echo "rfc1991" >gpghome/gpg.conf &&
11151115
echo "rfc1991-signed-tag RFC1991 signed tag" >expect &&
@@ -1123,12 +1123,12 @@ test_expect_success GPG \
11231123

11241124
rm -f gpghome/gpg.conf
11251125

1126-
test_expect_success GPG \
1126+
test_expect_success GPG,RFC1991 \
11271127
'verifying rfc1991 signature without --rfc1991' '
11281128
git tag -v rfc1991-signed-tag
11291129
'
11301130

1131-
test_expect_success GPG \
1131+
test_expect_success GPG,RFC1991 \
11321132
'list tag with rfc1991 signature without --rfc1991' '
11331133
echo "rfc1991-signed-tag RFC1991 signed tag" >expect &&
11341134
git tag -l -n1 rfc1991-signed-tag >actual &&
@@ -1139,7 +1139,7 @@ test_expect_success GPG \
11391139
test_cmp expect actual
11401140
'
11411141

1142-
test_expect_success GPG \
1142+
test_expect_success GPG,RFC1991 \
11431143
'reediting a signed tag body omits signature' '
11441144
echo "RFC1991 signed tag" >expect &&
11451145
GIT_EDITOR=./fakeeditor git tag -f -s rfc1991-signed-tag $commit &&

0 commit comments

Comments
 (0)