t1405: check for_each_reflog_ent_reverse() more thoroughly
If we are checking for a certain ordering, we should check that there are two entries. Do this by mirroring the preceding test. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
21f0e85061
commit
6887f69faa
@ -94,6 +94,7 @@ test_expect_success 'for_each_reflog_ent()' '
|
|||||||
|
|
||||||
test_expect_success 'for_each_reflog_ent_reverse()' '
|
test_expect_success 'for_each_reflog_ent_reverse()' '
|
||||||
$RUN for-each-reflog-ent-reverse HEAD >actual &&
|
$RUN for-each-reflog-ent-reverse HEAD >actual &&
|
||||||
|
head -n1 actual | grep recreate-main &&
|
||||||
tail -n1 actual | grep one
|
tail -n1 actual | grep one
|
||||||
'
|
'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user