]> git.ipfire.org Git - thirdparty/git.git/commit
tests: drop use of 'tee' that hides exit status
authorJunio C Hamano <gitster@pobox.com>
Thu, 8 Aug 2024 21:19:25 +0000 (14:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Aug 2024 01:08:10 +0000 (18:08 -0700)
commit0d66f601a9f82a6f3b4240cffa2b02ed5393f1ee
tree8e28226358403fe4c16c15f25ea3f301351588bd
parentdbecc617f75eea6ee5d05823a38b91223ff22b11
tests: drop use of 'tee' that hides exit status

A few tests have "| tee output" downstream of a git command, and
then inspect the contents of the file.  The net effect is that we
use an extra process, and hide the exit status from the upstream git
command.

In any of these tests, I do not see a reason why we want to hide a
possible failure from these git commands.  Replace the use of tee
with a plain simple redirection.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1001-read-tree-m-2way.sh
t/t5523-push-upstream.sh