@matheusbsbs / matheus-bagliano / commits / 6e4826ea75
Fork 0

t1410: use test_line_count

Use test_line_count to check if the number of lines matches expectations, for improved consistency and nicer debug output. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

René Scharfe committed Nov 26, 2019 at 19:21 UTC 6e4826ea75f7bfeeb48c2fd976054d8bc3e73c9c
1 file changed +2 -2
t/t1410-reflog.sh
+2 -2
@@ -195,7 +195,7 @@ test_expect_success 'delete' '
195
196 git reflog delete master@{1} &&
197 git reflog show master > output &&
198 - test $(($master_entry_count - 1)) = $(wc -l < output) &&
198 + test_line_count = $(($master_entry_count - 1)) output &&
199 test $HEAD_entry_count = $(git reflog | wc -l) &&
200 ! grep ox < output &&
201
@@ -209,7 +209,7 @@ test_expect_success 'delete' '
209
210 git reflog delete master@{07.04.2005.15:15:00.-0700} &&
211 git reflog show master > output &&
212 - test $(($master_entry_count - 1)) = $(wc -l < output) &&
212 + test_line_count = $(($master_entry_count - 1)) output &&
213 ! grep dragon < output
214
215 '