mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
a5d04a3ef9
commit
6e4826ea75
|
@ -195,7 +195,7 @@ test_expect_success 'delete' '
|
|||
|
||||
git reflog delete master@{1} &&
|
||||
git reflog show master > output &&
|
||||
test $(($master_entry_count - 1)) = $(wc -l < output) &&
|
||||
test_line_count = $(($master_entry_count - 1)) output &&
|
||||
test $HEAD_entry_count = $(git reflog | wc -l) &&
|
||||
! grep ox < output &&
|
||||
|
||||
|
@ -209,7 +209,7 @@ test_expect_success 'delete' '
|
|||
|
||||
git reflog delete master@{07.04.2005.15:15:00.-0700} &&
|
||||
git reflog show master > output &&
|
||||
test $(($master_entry_count - 1)) = $(wc -l < output) &&
|
||||
test_line_count = $(($master_entry_count - 1)) output &&
|
||||
! grep dragon < output
|
||||
|
||||
'
|
||||
|
|
Loading…
Reference in a new issue