Skip to content

Commit 6e4826e

Browse files
rscharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a5d04a3 commit 6e4826e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t1410-reflog.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ test_expect_success 'delete' '
195195
196196
git reflog delete master@{1} &&
197197
git reflog show master > output &&
198-
test $(($master_entry_count - 1)) = $(wc -l < output) &&
198+
test_line_count = $(($master_entry_count - 1)) output &&
199199
test $HEAD_entry_count = $(git reflog | wc -l) &&
200200
! grep ox < output &&
201201
@@ -209,7 +209,7 @@ test_expect_success 'delete' '
209209
210210
git reflog delete master@{07.04.2005.15:15:00.-0700} &&
211211
git reflog show master > output &&
212-
test $(($master_entry_count - 1)) = $(wc -l < output) &&
212+
test_line_count = $(($master_entry_count - 1)) output &&
213213
! grep dragon < output
214214
215215
'

0 commit comments

Comments
 (0)