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

Re: [PATCH] t1400: use consistent style for test_expect_success calls

From
Jeff King <peff@peff.net>
Date
Apr 16, 2017, 04:28 UTC
Message-ID
<20170416042810.yrofz2nazsiyshmf@sigill.intra.peff.net>
In-Reply-To
<20170416023102.25387-1-kyle@kyleam.com>
On Sat, Apr 15, 2017 at 10:31:02PM -0400, Kyle Meyer wrote:
Show 10 quoted lines
> Structure calls as
> 
>     test_expect_success 'description' '
>     	body
>     '
> 
> Use double quotes for the description if it requires parameter
> expansion or contains a single quote.
> 
> Signed-off-by: Kyle Meyer <kyle@kyleam.com>
Looks good to me.
Show 7 quoted lines
> -test_expect_success \
> -    'creating initial files' \
> -    'test_when_finished rm -f M &&
> -     echo TEST >F &&
> -     git add F &&
> -	 GIT_AUTHOR_DATE="2005-05-26 23:30" \
> -	 GIT_COMMITTER_DATE="2005-05-26 23:30" git commit -m add -a &&

Not even sure what's going on with the indentation here in the original. I don't see any reason this "git add" should start an indented block. This and the other whitespace fixes all look improvements to me.

-Peff
Previous: Kyle Meyer
Message 2 of 2 in “t1400: use consistent style for test_expect_success calls”
  1. t1400: use consistent style for test_expect_success callsKyle Meyer, Apr 16, 2017
  2. Jeff KingApr 16, 2017

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.