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

Re: [PATCH] t1400: drop debug `echo` to actually execute `test`

From
Jeff King <peff@peff.net>
Date
Sep 29, 2018, 08:00 UTC
Message-ID
<20180929080016.GH2174@sigill.intra.peff.net>
In-Reply-To
<20180928154359.26919-1-martin.agren@gmail.com>
On Fri, Sep 28, 2018 at 05:43:59PM +0200, Martin Ågren wrote:
Show 5 quoted lines
> Instead of running `test "foo" = "$(bar)"`, we prefix the whole thing
> with `echo`. Comparing to nearby tests makes it clear that this is just
> debug leftover. This line has actually been modified four times since it
> was introduced in e52290428b (General ref log reading improvements.,
> 2006-05-19) and the `echo` has always survived. Let's finally drop it.
Hmm, yeah. I cannot see how this echo was ever accomplishing anything.
> This script could need some more cleanups. This is just an immediate fix
> so that we actually test what we intend to.

Yeah, this is definitely worth doing now, and not holding hostage to a bigger cleanup.

> ---
>  t/t1400-update-ref.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
The patch looks good to me. Thanks!
-Peff
Previous: Martin Ågren
Message 2 of 2 in “t1400: drop debug `echo` to actually execute `test`”
  1. t1400: drop debug `echo` to actually execute `test`Martin Ågren, Sep 28, 2018
  2. Jeff KingSep 29, 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.