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

Re: [PATCH] tests: simplify "missing PREREQ" message

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Aug 24, 2010, 10:16 UTC
Message-ID
<4C739BE2.5060200@viscovery.net>
In-Reply-To
<20100824073410.GA5562@burratino>
Am 8/24/2010 9:34, schrieb Jonathan Nieder:
Show 16 quoted lines
> @@ -417,8 +417,14 @@ test_skip () {
>  	fi
>  	case "$to_skip" in
>  	t)
> +		of_prereq=
> +		if test "$missing_prereq" != "$prereq"
> +		then
> +			of_prereq=" of $prereq"
> +		fi
> +
>  		say_color skip >&3 "skipping test: $@"
> -		say_color skip "ok $test_count # skip $1 (missing $missing_prereq of $prereq)"
> +		say_color skip "ok $test_count # skip $1 (missing $missing_prereq${of_prereq})"
>  		: true
>  		;;
>  	*)
While you are touching this area, would also fix messages like these:

ok 70 # skip set --path (missing of ) ok 71 # skip get --path (missing of HOMEVAR) ok 72 # skip get --path copes with unset $HOME (missing of )

which are due to GIT_SKIP_TESTS=t1300.7[012]
-- Hannes
Previous: Jonathan NiederNext: Junio C Hamano
Message 6 of 7 in “test-lib: Multi-prereq support only checked the last prereq”
  1. test-lib: Multi-prereq support only checked the last prereqÆvar Arnfjörð Bjarmason, Aug 10, 2010
  2. Jonathan NiederAug 11, 2010
  3. test-lib: Multi-prereq support only checked the last prereqÆvar Arnfjörð Bjarmason, Aug 11, 2010
  4. Johannes SixtAug 13, 2010
  5. tests: simplify "missing PREREQ" messageJonathan Nieder, Aug 24, 2010
  6. Johannes SixtAug 24, 2010
  7. Junio C HamanoAug 24, 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.