Git development
 help / color / mirror / Atom feed
* [PATCH] t3429: use test_path_is_file helper
@ 2026-10-21 11:30 Joy via GitGitGadget
  2026-10-22 10:07 ` Usman Akinyemi
  0 siblings, 1 reply; 3+ messages in thread
From: Joy via GitGitGadget @ 2026-10-21 11:30 UTC (permalink / raw)
  To: git; +Cc: Usman Akinyemi>, Christian Couder>, Joy, Joy Gundu

From: Joy Gundu <soniqjjj@gmail.com>

Signed-off-by: Joy Gundu <soniqjjj@gmail.com>
---
    t3429: use test_path_is_file helper
    
    Replace test -e F with test_path_is_file F in t3429-rebase-edit-todo.sh
    to use Git's semantic test helper and provide better diagnostics on
    failure.
    
    Tested with:
    
    make NO_ICONV=YesPlease test T=t3429-rebase-edit-todo.sh
    
    All 7 tests passed.

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2274%2FJoiejoie1%2Foutreachy%2Ftest-path-helper-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2274/Joiejoie1/outreachy/test-path-helper-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/2274

 t/t3429-rebase-edit-todo.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/t3429-rebase-edit-todo.sh b/t/t3429-rebase-edit-todo.sh
index 28e4bdd0d9..a421c35d8a 100755
--- a/t/t3429-rebase-edit-todo.sh
+++ b/t/t3429-rebase-edit-todo.sh
@@ -14,7 +14,7 @@ test_expect_success 'setup' '
 test_expect_success 'rebase exec modifies rebase-todo' '
 	todo=.git/rebase-merge/git-rebase-todo &&
 	git rebase HEAD~1 -x "echo exec touch F >>$todo" &&
-	test -e F
+	test_path_is_file F
 '
 
 test_expect_success 'rebase exec with an empty list does not exec anything' '

base-commit: c51408889c3b372814bc20b9431c3b74d0d268eb
-- 
gitgitgadget

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21 11:30 [PATCH] t3429: use test_path_is_file helper Joy via GitGitGadget
2026-10-22 10:07 ` Usman Akinyemi
2026-10-22 14:48   ` 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