File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -282,18 +282,17 @@ test_expect_success GPG 'failed atomic push does not execute GPG' '
282
282
EOF
283
283
test_must_fail env PATH="$TRASH_DIRECTORY:$PATH" git push \
284
284
--signed --atomic --porcelain \
285
- dst noop ff noff >out 2>&1 &&
285
+ dst noop ff noff >out 2>err &&
286
286
287
- test_i18ngrep ! "gpg failed to sign" out &&
288
- sed -n -e "/^To dst/,$ p" out >actual &&
287
+ test_i18ngrep ! "gpg failed to sign" err &&
289
288
cat >expect <<-EOF &&
290
289
To dst
291
290
= refs/heads/noop:refs/heads/noop [up to date]
292
291
! refs/heads/ff:refs/heads/ff [rejected] (atomic push failed)
293
292
! refs/heads/noff:refs/heads/noff [rejected] (non-fast-forward)
294
293
Done
295
294
EOF
296
- test_i18ncmp expect actual
295
+ test_cmp expect out
297
296
'
298
297
299
298
test_done
You can’t perform that action at this time.
0 commit comments