File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -895,18 +895,16 @@ test_expect_success GPG 'verifying a forged tag should fail' '
895
895
test_must_fail git tag -v forged-tag
896
896
'
897
897
898
- test_expect_success ' verifying a proper tag with --format pass and format accordingly' '
899
- cat >expect <<-\EOF
898
+ test_expect_success GPG ' verifying a proper tag with --format pass and format accordingly' '
899
+ cat >expect <<-\EOF &&
900
900
tagname : signed-tag
901
- EOF &&
901
+ EOF
902
902
git tag -v --format="tagname : %(tag)" "signed-tag" >actual &&
903
903
test_cmp expect actual
904
904
'
905
905
906
- test_expect_success ' verifying a forged tag with --format fail and format accordingly' '
907
- cat >expect <<-\EOF
908
- tagname : forged-tag
909
- EOF &&
906
+ test_expect_success GPG ' verifying a forged tag with --format should fail silently' '
907
+ >expect &&
910
908
test_must_fail git tag -v --format="tagname : %(tag)" "forged-tag" >actual &&
911
909
test_cmp expect actual
912
910
'
Original file line number Diff line number Diff line change @@ -125,18 +125,16 @@ test_expect_success GPG 'verify multiple tags' '
125
125
test_cmp expect.stderr actual.stderr
126
126
'
127
127
128
- test_expect_success ' verifying tag with --format' '
129
- cat >expect <<-\EOF
128
+ test_expect_success GPG ' verifying tag with --format' '
129
+ cat >expect <<-\EOF &&
130
130
tagname : fourth-signed
131
- EOF &&
131
+ EOF
132
132
git verify-tag --format="tagname : %(tag)" "fourth-signed" >actual &&
133
133
test_cmp expect actual
134
134
'
135
135
136
- test_expect_success ' verifying a forged tag with --format fail and format accordingly' '
137
- cat >expect <<-\EOF
138
- tagname : 7th forged-signed
139
- EOF &&
136
+ test_expect_success GPG ' verifying a forged tag with --format should fail silently' '
137
+ >expect &&
140
138
test_must_fail git verify-tag --format="tagname : %(tag)" $(cat forged1.tag) >actual-forged &&
141
139
test_cmp expect actual-forged
142
140
'
You can’t perform that action at this time.
0 commit comments