From: Junio C Hamano <gitster@pobox.com>
To: Usman Akinyemi <usmanakinyemi202@gmail.com>
Cc: Victor Okafor <vua.okafor@gmail.com>, git@vger.kernel.org
Subject: Re: [PATCH] t0200: use path checking helpers
Date: Wed, 14 Oct 2026 12:24:52 -0700 [thread overview]
Message-ID: <xmqqtsmoqe4b.fsf@gitster.g> (raw)
In-Reply-To: <CAPSxiM-VB_JUexggYTMmYcHe7W7pw=XNuMrENB4gZoq2Zo8J7Q@mail.gmail.com> (Usman Akinyemi's message of "Wed, 14 Oct 2026 15:45:00 +0100")
Usman Akinyemi <usmanakinyemi202@gmail.com> writes:
>>
>> Replace direct directory and file checks with the corresponding
>> test helpers in t/t0200-gettext-basic.sh.
> This is a little bit more confusing. The commit message does not
> really show why you did what you did. Along the line of
>
> "Modernize the code testing whether a file exists in "filename"' seems
> better. Also, your patches is doing two things, i.e modernizing the 'test -f'
> and 'test -d'. Ideally a patch should only focus on one thing but,
> since this is
> simple patch. It is okay.
>>
>> Instances were located using:
>> git grep -n -E 'test -[efds]' -- 't/t[0-9]*.sh'
> This part is nto necessary.
Since many candidates are working on similar microprojects (which is
fine) and making the same mistakes (which is expected), perhaps mentors
should tell them to read the review exchanges on other candidates'
patches and learn from them.
>>
>> Signed-off-by: Victor Okafor <vua.okafor@gmail.com>
>> ---
>> t/t0200-gettext-basic.sh | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/t/t0200-gettext-basic.sh b/t/t0200-gettext-basic.sh
>> test_expect_success GETTEXT 'sanity: Icelandic locale was compiled' '
>> - test -f "$TEXTDOMAINDIR/is/LC_MESSAGES/git.mo"
>> + test_path_is_file "$TEXTDOMAINDIR/is/LC_MESSAGES/git.mo"
>> '
>>
>> # TODO: When we have more locales, generalize this to test them
>> --
>> 2.55.0
>>
> Thanks
>>
prev parent reply other threads:[~2026-10-14 19:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-14 10:56 [PATCH] t0200: use path checking helpers Victor Okafor
2026-10-14 14:45 ` Usman Akinyemi
2026-10-14 19:24 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqtsmoqe4b.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=usmanakinyemi202@gmail.com \
--cc=vua.okafor@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).