Re: [PATCH] Improved and extended t5404
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 14, 2007, 17:10 UTC
- Message-ID
- <Pine.LNX.4.64.0711141709410.4362@racer.site>
- In-Reply-To
- <20071114071929.GA2942@steel.home>
Hi,
On Wed, 14 Nov 2007, Alex Riesen wrote:
Show 16 quoted lines
> Junio C Hamano, Wed, Nov 14, 2007 01:02:20 +0100: > > Alex Riesen <raa.lkml@gmail.com> writes: > > > > > Ignore exit code of git push in t5404, as it is not relevant for the > > > test > > > > This proposed log message solicits a "Huh? -- Since when ignoring exit > > code is an improvement?" reaction. If this push is expected to error > > out, then wouldn't you want to make sure it errors out as expected? > > If the problem is that the exit status is unreliable, maybe we need to > > make it reliable instead? > > Well, it is kind of undefined. git push just updated some remote > references and failed on the others. It has had some failures, so it > returns non-0. And as I said, it really is not about the operation, but > about if the tracking and remote branches are set as we want them.
If you know it should fail, why not make the test dependent on that failure? I mean, should git-push have a bug and not fail, it would be nice to catch this early...
Ciao, Dscho