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

Re: [PATCH 1/3] test-lib: Add support for multiple test prerequisites

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 8, 2010, 02:03 UTC
Message-ID
<20100808020332.GA11894@burratino>
In-Reply-To
<20100808015729.GA9284@burratino>
Jonathan Nieder wrote:
Show 8 quoted lines
> --- a/t/test-lib.sh
> +++ b/t/test-lib.sh
> @@ -338,7 +338,7 @@ test_have_prereq () {
>  		*" $prerequisite "*)
>  			: yes, have it ;;
>  		*)
> -			! : nope ;;
> +			return 1

The ";;" is optional for the last arm in a case statement, but it is probably simpler to include it. Sorry about that.

(The only intended effect was only to use “return” that terminates and propagates out of the loop instead of “false” that is overridden by a later “true”.)

Previous: Jonathan NiederNext: Johannes Sixt
Message 4 of 8 in “tests: Better prerequisite handling & documentation”
  1. 0/3 tests: Better prerequisite handling & documentationÆvar Arnfjörð Bjarmason, Aug 6, 2010
  2. 1/3 test-lib: Add support for multiple test prerequisitesÆvar Arnfjörð Bjarmason, Aug 6, 2010
  3. Jonathan NiederAug 8, 2010
  4. Jonathan NiederAug 8, 2010
  5. Johannes SixtAug 8, 2010
  6. Ævar Arnfjörð BjarmasonAug 8, 2010
  7. 2/3 test-lib: Print missing prerequisites in test outputÆvar Arnfjörð Bjarmason, Aug 6, 2010
  8. 3/3 t/README: Document the predefined test prerequisitesÆvar Arnfjörð Bjarmason, Aug 6, 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.