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

Re: [PATCH 1/3] test-lib: tests can have multiple prerequisites

From
Jeff King <peff@peff.net>
Date
Apr 26, 2010, 19:17 UTC
Message-ID
<20100426191703.GC10772@coredump.intra.peff.net>
In-Reply-To
<20100421133806.GA5595@progeny.tock>
On Wed, Apr 21, 2010 at 08:38:06AM -0500, Jonathan Nieder wrote:
Show 8 quoted lines
> Alas, I didn’t notice the thread with the almost identical patch [1]
> before writing this one.
> 
> Since I am painting it, I prefer this way.  I find it intuitive and
> can’t really see where the fuss about using some other coding style
> came from.  So I would be very happy if someone who does understand
> the fuss could come up with a comment to add to the commit message
> about this. :)

I liked commas better, but since you are doing the work of writing the patches, I will let it go. :)

I do wonder if it might be less error-prone to have:
  test_expect_success PREREQ1 PREREQ2 'desc' 'test'
instead of
  test_expect_success 'PREREQ1 PREREQ2' 'desc' 'test'
which should just be something like
  while test $# -gt 2; do
    test_have_prereq "$1" || skip=t
    shift
  done

But if you think that's dumb, just ignore it. It is really not worth spending that much time on.

-Peff
Previous: Jonathan NiederNext: Junio C Hamano
Message 4 of 8 in “running tests as fakeroot”
  1. 0/3 running tests as fakerootJonathan Nieder, Apr 21, 2010
  2. 1/3 test-lib: tests can have multiple prerequisitesJonathan Nieder, Apr 21, 2010
  3. Jonathan NiederApr 21, 2010
  4. Jeff KingApr 26, 2010
  5. Junio C HamanoApr 27, 2010
  6. Jeff KingApr 27, 2010
  7. 2/3 t1004 (read-tree): the unremovable symlink test requires POSIXPERMJonathan Nieder, Apr 21, 2010
  8. 3/3 Permit tests to be run as a (fake) root userJonathan Nieder, Apr 21, 2010

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.