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

Re: [PATCH v2] git-notes: Run partial expensive test everywhere

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 24, 2010, 16:46 UTC
Message-ID
<7vd3t8x8kk.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100824071453.GA3064@burratino>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 8 quoted lines
> Odd.  Different how?  As far as I can tell, all that test asks
> of time is to execv() its arguments and pass on a 0 exit status.
>
> Ah, maybe this is it: perhaps /usr/bin/time sh runs /bin/sh.  Does the
> following help?
>
> Patch is against next.  Untested except on Linux where it wouldn't
> make a difference.
Makes sense, although I don't have access to Solaris boxes right now...
Show 23 quoted lines
> -- 8< --
> Subject: t3302 (notes): Port to Solaris
>
> The time_notes script, which uses POSIX shell features, is
> currently sometimes run with a non-POSIX /bin/sh.
>
> Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
> ---
> diff --git a/t/t3302-notes-index-expensive.sh b/t/t3302-notes-index-expensive.sh
> index 7c08e99..e35d781 100755
> --- a/t/t3302-notes-index-expensive.sh
> +++ b/t/t3302-notes-index-expensive.sh
> @@ -96,7 +96,7 @@ time_notes () {
>  	for mode in no-notes notes
>  	do
>  		echo $mode
> -		/usr/bin/time sh ../time_notes $mode $1
> +		/usr/bin/time "$SHELL_PATH" ../time_notes $mode $1
>  	done
>  }
>  
> -- 
Previous: Jonathan NiederNext: Ævar Arnfjörð Bjarmason
Message 8 of 9 in “git-notes: Run partial expensive test everywhere”
  1. git-notes: Run partial expensive test everywhereÆvar Arnfjörð Bjarmason, Aug 10, 2010
  2. Sverre RabbelierAug 10, 2010
  3. Ævar Arnfjörð BjarmasonAug 10, 2010
  4. Ævar Arnfjörð BjarmasonAug 10, 2010
  5. git-notes: Run partial expensive test everywhereÆvar Arnfjörð Bjarmason, Aug 10, 2010
  6. Ævar Arnfjörð BjarmasonAug 19, 2010
  7. Jonathan NiederAug 24, 2010
  8. Junio C HamanoAug 24, 2010
  9. Ævar Arnfjörð BjarmasonAug 29, 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.