t1410: use test helpers in reflog rewind test
Replace raw `test -f` and `! test -f` checks in the rewind test with `test_path_is_file` and `test_path_is_missing`. This provides clearer failure diagnostics and keeps the test consistent with the rest of the test suite. Signed-off-by: Pushkar Singh <pushkarkumarsingh1970@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Pushkar Singh committed
Jan 11, 2026 at 19:07 UTC
220f888d7e2f3d8370a99992785fc0f005913540
1 file changed
+4
-4
t/t1410-reflog.sh
+4
-4
@@ -130,10 +130,10 @@ test_expect_success 'pass through -- to sub-command' '
130
131
test_expect_success rewind '
132
test_tick && git reset --hard HEAD~2 &&
133
- test -f C &&
134
- test -f A/B/E &&
135
- ! test -f F &&
136
- ! test -f A/G &&
133
+ test_path_is_file C &&
134
+ test_path_is_file A/B/E &&
135
+ test_path_is_missing F &&
136
+ test_path_is_missing A/G &&
137
138
check_have A B C D E F G H I J K L &&
139