t1512: 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
a5d04a3ef92887648c8dee49ac75370177dfcf78
1 file changed
+1
-1
t/t1512-rev-parse-disambiguation.sh
+1
-1
@@ -282,7 +282,7 @@ test_expect_success 'rev-parse --disambiguate' '
282
# commits created by commit-tree in earlier tests share a
283
# different prefix.
284
git rev-parse --disambiguate=000000000 >actual &&
285
- test $(wc -l <actual) = 16 &&
285
+ test_line_count = 16 actual &&
286
test "$(sed -e "s/^\(.........\).*/\1/" actual | sort -u)" = 000000000
287
'
288