Skip to content

Commit a5d04a3

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1512-rev-parse-disambiguation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ test_expect_success 'rev-parse --disambiguate' '
282282
# commits created by commit-tree in earlier tests share a
283283
# different prefix.
284284
git rev-parse --disambiguate=000000000 >actual &&
285-
test $(wc -l <actual) = 16 &&
285+
test_line_count = 16 actual &&
286286
test "$(sed -e "s/^\(.........\).*/\1/" actual | sort -u)" = 000000000
287287
'
288288

0 commit comments

Comments
 (0)