git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t5404: relax overzealous test

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 9, 2018, 13:52 UTC
Message-ID
<nycvar.QRO.7.76.6.1804091551170.55@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
In-Reply-To
<xmqq60516rwq.fsf@gitster-ct.c.googlers.com>
Hi Junio,
On Mon, 9 Apr 2018, Junio C Hamano wrote:
Show 23 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > On Fri, Apr 06, 2018 at 09:31:22PM +0200, Johannes Schindelin wrote:
> >
> >> In 0b294c0abf0 (make deleting a missing ref more quiet, 2008-07-08), we
> >> added a test to verify that deleting an already-deleted ref does not
> >> show an error.
> >
> > Amazing that it took this long to come up.
> > ...
> >> This patch chooses instead to look for the prefix "error:" at the
> >> beginning of the line, so that there can be no ambiguity that any catch
> >> was indeed a message generated by Git's `error_builtin()` function.
> >
> > Yep, this seems obviously correct.
> 
> Hits in
> 
>     $ git grep 'grep ["'\'']*error' t
> 
> shows that many checks for errors that are not anchored, but I do
> not think any of them are looking for the string in a pathname other
> than this instance, so it would be OK.

Yes, they are okay, I did run the entire test suite in a worktree with the same name as my branch name: fix-t5404-error.

Ciao, Dscho

Previous: Junio C Hamano
Message 7 of 7 in “t5404: relax overzealous test”
  1. t5404: relax overzealous testJohannes Schindelin, Apr 6, 2018
  2. Jeff KingApr 6, 2018
  3. Johannes SchindelinApr 6, 2018
  4. Jeff KingApr 6, 2018
  5. Ævar Arnfjörð BjarmasonApr 6, 2018
  6. Junio C HamanoApr 9, 2018
  7. Johannes SchindelinApr 9, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.