Git development
 help / color / mirror / Atom feed
* [PATCH] t0200: use path checking helpers
@ 2026-10-14 10:56 Victor Okafor
  2026-10-14 14:45 ` Usman Akinyemi
  0 siblings, 1 reply; 3+ messages in thread
From: Victor Okafor @ 2026-10-14 10:56 UTC (permalink / raw)
  To: git; +Cc: Victor Okafor

Replace direct directory and file checks with the corresponding
test helpers in t/t0200-gettext-basic.sh.

Instances were located using:
git grep -n -E 'test -[efds]' -- 't/t[0-9]*.sh'

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
index 8db26c1ada..177cf658fd 100755
--- a/t/t0200-gettext-basic.sh
+++ b/t/t0200-gettext-basic.sh
@@ -31,12 +31,12 @@ test_expect_success 'xgettext sanity: Comment extraction with --add-comments sto
 '
 
 test_expect_success GETTEXT 'sanity: $TEXTDOMAINDIR exists without NO_GETTEXT=YesPlease' '
-    test -d "$TEXTDOMAINDIR" &&
+    test_path_is_dir "$TEXTDOMAINDIR" &&
     test "$TEXTDOMAINDIR" = "$GIT_TEXTDOMAINDIR"
 '
 
 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-14 19:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox