Article View: linux.kernel.git
Article #541Re: [PATCH] t0200: use path checking helpers
From: Junio C Hamano
Date: Wed, 14 Oct 2026 19:24
Date: Wed, 14 Oct 2026 19:24
42 lines
11041 bytes
11041 bytes
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 >>
Technical Details
Message-ID:
<xmqqtsmoqe4b.fsf@gitster.g>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72053-linux-kernel-git=dewy.ruReferences:
<20261014105613.49334-1-vua.okafor@gmail.com> <CAPSxiM-VB_JUexggYTMmYcHe7W7pw=XNuMrENB4gZoq2Zo8J7Q@mail.gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-72053-linux-kernel-git=dewy.ru
From: gitster@pobox.com (Junio C Hamano)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] t0200: use path checking helpers
Date: Wed, 14 Oct 2026 12:24:52 -0700
Organization: Usenet Network
Message-ID: <xmqqtsmoqe4b.fsf@gitster.g>
References: <20261014105613.49334-1-vua.okafor@gmail.com>
<CAPSxiM-VB_JUexggYTMmYcHe7W7pw=XNuMrENB4gZoq2Zo8J7Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: usenet.network;
logging-data="2370855"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8huuT0rbRwwj4nQTG2JrYzl8k+8= sha256:1Lfp8pCYHUSP0vq0E9Rz/jxbgCc7iCmXO0WBF2/zQdI=
sha1:NpvdRwXQUQQgqwZfx36/zcXz4I4= sha256:dG35kAueFgbVgefQIrzPaVZ1vcZaHx1oP82NlO5QSHc=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 079D21101BF; Wed, 14 Oct 2026 22:25:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=pobox.com header.b=TySSHVcu; dkim=pass (2048-bit key)
header.d=messagingengine.com header.b=aSyjkTip
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id jolOl3DapfjB;
Wed, 14 Oct 2026 22:25:21 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-72053-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=pobox.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id E72DB10FF0E; Wed, 14 Oct 2026 22:25:05 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id F3CF433FC6; Wed, 14 Oct 2026 19:24:57 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id D10C2475336;
Wed, 14 Oct 2026 19:24:57 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b="TySSHVcu";
dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="aSyjkTip"
X-Received: from fhigh-a3-smtp.messagingengine.com (fhigh-a3-smtp.messagingengine.com [103.168.172.154])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 355913CAA53
for <git@vger.kernel.org>; Wed, 14 Oct 2026 19:24:54 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.154
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792005896; cv=none; b=QEq/gTXeGsvgaXzsURQqNJRNFPXrJ74iXVZqVFPSnHiry4xfusTx0cJwzVy2VXvLIQONDP+p9wc1QlDh74dwUZxjbEvGuWeqI0abYZ7H0ZjC3liJfnpETfLlze0M2IEhhb8hoUQ/u/r27yjVLx61na1m96hmLOdOc1Z6Py1M6Rg=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792005896; c=relaxed/simple;
bh=7aXS0q7VSvxwUGYOV4u4lxRTUm9FelBwG06Ay0ievzM=;
h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID:
MIME-Version:Content-Type; b=IjtLNblOqPUwDPKwjvvhhzRPCAq1gUQwpT0zhEZSGmWdjyXu8JldeXj5JN/nWc6U6LRNtt8zHpWubFkiB5uRe4rvYBUmZzDBmToKTqfg4+7b4uRmYFepHUWDmfAsLHxMrB6UbzcjgeNr8Apf1o7rqX2zyqsBxdY8m+bGTOKdXfU=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass (2048-bit key) header.d=pobox.com header.i=@pobox.com header.b=TySSHVcu; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=aSyjkTip; arc=none smtp.client-ip=103.168.172.154
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com
X-Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43])
by mailfhigh.phl.internal (Postfix) with ESMTP id 382531400102
for <git@vger.kernel.org>; Wed, 14 Oct 2026 15:24:54 -0400 (EDT)
X-Received: from phl-frontend-02 ([10.202.2.161])
by phl-compute-03.internal (MEProxy); Wed, 14 Oct 2026 15:24:54 -0400
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc
:cc:content-type:content-type:date:date:from:from:in-reply-to
:in-reply-to:message-id:mime-version:references:reply-to:subject
:subject:to:to; s=fm1; t=1792005894; x=1792092294; bh=GbTR/kiIUv
lgxp0YWGkigxQt+wxpwAtDK6K6PcRo6Ho=; b=TySSHVcublk2Hcyz6IETsEFDq+
Q9ZcvdrbXXR6OkuWQs+2SE5pKpCnFhqyr8eNJQeMNPAv8zgLDEvMCWGGEX6oSlvB
nOT6WBFZaEwCQpJQ2bAtdLH9rmb96IFHGobCufA+nS0QuAJ5rs51KJJiwWtAIzEH
B0tzQRf8xq1zSunqlY2xhd0OiLRINnWxOS4OmYIJnMy31mGOFe+LFAytF+GIALhS
0J4+Wc4Pf9iH44rHyz6i4rK+nFTppHbkW8iUACpcA/Mw5aFxTKk2XMzqGh3I+Oxs
cR89+WYAJ6HlB9NxdKXI0C8rp7/33EF+8GSj1nE0OfSx6kYa5IVQc3bVFesA==
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:cc:content-type:content-type:date:date
:feedback-id:feedback-id:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:subject:subject:to
:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
1792005894; x=1792092294; bh=GbTR/kiIUvlgxp0YWGkigxQt+wxpwAtDK6K
6PcRo6Ho=; b=aSyjkTipTEv4gak1WcpBRp4yTYt9x/0sLcMPZ5ouvoMQaTF5Y1s
9L47ipW8C3ZUAIxzJXw+iIbtosM064rvUhOdzt/Rj9DYJI1kqn8li96jignQlbSk
CSruMCWBQeLJD2CEyJ9uHiHD2clfskSAkPOo5+AjeuMx7gxVDOr6kqd+KW6FQthJ
GYAXXSr1wfwKsf9BQqIYNh/ObYl1nblVy9pW+5I0lA9Q/+3anFYVgPS+MeBtSaTm
KdIH3W9EtlQukN1iFQVfjMuDnJcmJDL/5x4yivwxXNJB+S3JLOMr7vSclvniCKyk
2sFjz4dB5nakYAtthuPWxX2TbSekq1LS0zg==
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=sign d=pobox.com a=rsa-sha256;
X-DKIM2-Signature: i=1; m=1; t=1792005894; d=pobox.com;
mf=PGdpdHN0ZXJAcG9ib3guY29tPg==;
rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+;
s=fm1:rsa-sha256:Wn7ONYGjVna8gPAh0PqoP2CWqr9B6XUrBhTzH+apz/baYIO
Ib0XCwv4M61UzfM1+BhPA1V8caXSGKozRgWR7kxGBSNafuT6lkLEbC2OHIgv8NZx
uIawXNSdiMWxdTI3zFmqwI7wL+whjajxPz10/r1loYXIUYbDD26cTfSdxs48Prsv
wApWatzUzZchwnmllK6fpVEjy/o4vC35otXNnx41f1ExVtIHkTUoI85zvzsL6SHY
3swPIei3o2e7g1/EWYFKFhSqK+5PjwvuPxwoetyb4Zl5C+8cmNZxaX6cHK3AVwj3
bD+3S344GAzpTXM1fn7/BTdYx1fxuY+l6thvZJw==;
X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-06;
repo=github.com/dkim2wg/interop; date=2026-10-04; sw=lmtpprox;
action=mi-m=1; hc=12;
hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id,
mime-version,references,subject,to,user-agent;
X-Message-Instance: m=1; h=sha256:lcO/VwtRZuB/UgMRaHW0TiouSuFLNhPlz3UBE7Mq3EM=:7aXS0q7VSvxwUGYOV4u4lxRTUm9FelBwG06Ay0ievzM=;
X-ME-Sender: <xms:BtfPavTim3PkkpWk27If7cRI4L3_9suvWv-K-APMGhZJqj_3mz4Big>
<xme:BtfPanyaZXsd6ZyycBWt2tpacx93w1tBSP9419i0mZgenSGwiefUmFNdJ-o8bRf1J
NEcCvjw40mypVeuXF9lTfR7ZsiNU4wk3LyqqLD3z1-EdoGw0j6X5Q>
X-ME-Received: <xmr:BtfPap08SDMFA3z_I7RGBFGQmO9mkw-sIXdAIC4qBUrJH-62jdL_3Jc7HfuRpu7qeYxPx6q4kVVPxm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astmail
X-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
14 Oct 2026 15:24:53 -0400 (EDT)
X-Cc: Victor Okafor <vua.okafor@gmail.com>, git@vger.kernel.org
X-In-Reply-To: <CAPSxiM-VB_JUexggYTMmYcHe7W7pw=XNuMrENB4gZoq2Zo8J7Q@mail.gmail.com>
(Usman Akinyemi's message of "Wed, 14 Oct 2026 15:45:00 +0100")
X-User-Agent: Gnus/5.13 (Gnus v5.13)
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>