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

Re: [GSOC PATCH] t2003: modernize test path helpers

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 9, 2026, 08:35 UTC
Message-ID
<xmqqqzqu71qw.fsf@gitster.g>
In-Reply-To
<20260208202809.270523-1-bkkaracay@gmail.com>
Burak Kaan Karaçay <bkkaracay@gmail.com> writes:
> Subject: Re: [GSOC PATCH] t2003: modernize test path helpers

What we see in the patch are more uses of test path helpers, and nothing in these path helpers are changed at all.

    Subject: t2003: modernize path existence checks using test helpers
or something like that, perhaps.
> -	test ! -h path1 && test -d path1 &&
> -	test -f path1/file1 && test ! -f path2/file1
> +	test_path_is_dir_not_symlink path1 &&
> +	test_path_is_file path1/file1 && test_path_is_missing path2/file1

The above is a faithful rewrite, but as a separate patch to follow-up this file, the last line should be split into two, having one command on each line.

All changes in this patch looked good.  Will queue.
Thanks.
Previous: Burak Kaan Karaçay
Message 2 of 2 in “t2003: modernize test path helpers”
  1. t2003: modernize test path helpersBurak Kaan Karaçay, Feb 8, 2026
  2. Junio C HamanoFeb 9, 2026

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.