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

Re: [PATCH 3/3] t/README: clarify the test_have_prereq documentation

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Mar 24, 2017, 00:59 UTC
Message-ID
<20170324005932.GG20794@aiede.mtv.corp.google.com>
In-Reply-To
<20170322221854.10791-3-avarab@gmail.com>
Hi,
Ævar Arnfjörð Bjarmason wrote:
Show 12 quoted lines
> --- a/t/README
> +++ b/t/README
> @@ -612,8 +612,10 @@ library for your script to use.
>   - test_have_prereq <prereq>
>  
>     Check if we have a prerequisite previously set with
> -   test_set_prereq. The most common use of this directly is to skip
> -   all the tests if we don't have some essential prerequisite:
> +   test_set_prereq. The most common use-case for using this directly,
> +   as opposed to as an argument to test_expect_*, is to skip all the
> +   tests at the start of the test script if we don't have some
> +   essential prerequisite:
Nit: the hyphenated word "use-case" feels jargon-ish.  I've seen it
more often as two separate words.  Better yet to clarify that we're
talking about idioms and not just goals:
                       The most common way to use this explicitly (as opposed
      to the implicit use when an argument is passed to test_expect_*) is to
      skip all the tests at the start of a test script if we don't have some
      essential prerequisite:
With or without such a change,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Thanks.
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 3 of 5 in “t/README: link to metacpan.org, not search.cpan.org”
  1. 1/3 t/README: link to metacpan.org, not search.cpan.orgÆvar Arnfjörð Bjarmason, Mar 22, 2017
  2. 3/3 t/README: clarify the test_have_prereq documentationÆvar Arnfjörð Bjarmason, Mar 22, 2017
  3. Jonathan NiederMar 24, 2017
  4. 2/3 t/README: change "Inside <X> part" to "Inside the <X> part"Ævar Arnfjörð Bjarmason, Mar 22, 2017
  5. Junio C HamanoMar 22, 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.