Skip to content

Commit 0729586

Browse files
committed
Merge branch 'hx/push-atomic-with-cert' into next
Hotfix to a recently added test script. * hx/push-atomic-with-cert: t5534: split stdout and stderr redirection
2 parents 7178c9a + 2cd6e1d commit 0729586

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

t/t5534-push-signed.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,17 @@ test_expect_success GPG 'failed atomic push does not execute GPG' '
282282
EOF
283283
test_must_fail env PATH="$TRASH_DIRECTORY:$PATH" git push \
284284
--signed --atomic --porcelain \
285-
dst noop ff noff >out 2>&1 &&
285+
dst noop ff noff >out 2>err &&
286286
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 &&
289288
cat >expect <<-EOF &&
290289
To dst
291290
= refs/heads/noop:refs/heads/noop [up to date]
292291
! refs/heads/ff:refs/heads/ff [rejected] (atomic push failed)
293292
! refs/heads/noff:refs/heads/noff [rejected] (non-fast-forward)
294293
Done
295294
EOF
296-
test_i18ncmp expect actual
295+
test_cmp expect out
297296
'
298297

299298
test_done

0 commit comments

Comments
 (0)