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

Re: [PATCH] env-helper: move this built-in to to "test-tool env-helper"

From
Andrei Rybak <rybak.a.v@gmail.com>
Date
Jan 14, 2023, 17:43 UTC
Message-ID
<744c8abe-6065-872d-8c9f-a1b1ab682d52@gmail.com>
In-Reply-To
<patch-1.1-e662c570f1d-20230112T155226Z-avarab@gmail.com>
Hi Ævar,
Here's a drive-by nitpick:
On 12/01/2023 17:03, Ævar Arnfjörð Bjarmason wrote:
Show 9 quoted lines
> diff --git a/Makefile b/Makefile
> index db447d07383..f2f342683c1 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -799,6 +799,7 @@ TEST_BUILTINS_OBJS += test-dump-fsmonitor.o
>   TEST_BUILTINS_OBJS += test-dump-split-index.o
>   TEST_BUILTINS_OBJS += test-dump-untracked-cache.o
>   TEST_BUILTINS_OBJS += test-example-decorate.o
> +TEST_BUILTINS_OBJS += test-env-helper.o

The .o files are sorted alphabetically in TEST_BUILTINS_OBJS, so test-env-helper.o should be above test-example-decorate.o

Compare it to changes in t/helper/test-tool.[ch]:
Show 24 quoted lines
> diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c
> index 7eb1a26a305..abe8a785eb6 100644
> --- a/t/helper/test-tool.c
> +++ b/t/helper/test-tool.c
> @@ -28,6 +28,7 @@ static struct test_cmd cmds[] = {
>   	{ "dump-fsmonitor", cmd__dump_fsmonitor },
>   	{ "dump-split-index", cmd__dump_split_index },
>   	{ "dump-untracked-cache", cmd__dump_untracked_cache },
> +	{ "env-helper", cmd__env_helper },
>   	{ "example-decorate", cmd__example_decorate },
>   	{ "fast-rebase", cmd__fast_rebase },
>   	{ "fsmonitor-client", cmd__fsmonitor_client },
> diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h
> index 2e20a16eb82..ea2672436c9 100644
> --- a/t/helper/test-tool.h
> +++ b/t/helper/test-tool.h
> @@ -22,6 +22,7 @@ int cmd__dump_fsmonitor(int argc, const char **argv);
>   int cmd__dump_split_index(int argc, const char **argv);
>   int cmd__dump_untracked_cache(int argc, const char **argv);
>   int cmd__dump_reftable(int argc, const char **argv);
> +int cmd__env_helper(int argc, const char **argv);
>   int cmd__example_decorate(int argc, const char **argv);
>   int cmd__fast_rebase(int argc, const char **argv);
>   int cmd__fsmonitor_client(int argc, const char **argv);
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “t/interop: allow tests to run "git env--helper"”
  1. t/interop: allow tests to run "git env--helper"Jeff King, Jan 10, 2023
  2. env-helper: move this built-in to to "test-tool env-helper"Ævar Arnfjörð Bjarmason, Jan 12, 2023
  3. Jeff KingJan 12, 2023
  4. Junio C HamanoJan 13, 2023
  5. Andrei RybakJan 14, 2023
  6. Junio C HamanoJan 15, 2023

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.