summaryrefslogtreecommitdiff
path: root/t/t1512-rev-parse-disambiguation.sh
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2019-11-26 18:21:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-27 02:31:40 (GMT)
commita5d04a3ef92887648c8dee49ac75370177dfcf78 (patch)
tree532fb60789773269f0b0cbfa823a242be5cf265d /t/t1512-rev-parse-disambiguation.sh
parentd9f6f3b6195a0ca35642561e530798ad1469bd41 (diff)
downloadgit-a5d04a3ef92887648c8dee49ac75370177dfcf78.zip
git-a5d04a3ef92887648c8dee49ac75370177dfcf78.tar.gz
git-a5d04a3ef92887648c8dee49ac75370177dfcf78.tar.bz2
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>
Diffstat (limited to 't/t1512-rev-parse-disambiguation.sh')
-rwxr-xr-xt/t1512-rev-parse-disambiguation.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1512-rev-parse-disambiguation.sh b/t/t1512-rev-parse-disambiguation.sh
index c19fb50..f06b045 100755
--- a/t/t1512-rev-parse-disambiguation.sh
+++ b/t/t1512-rev-parse-disambiguation.sh
@@ -282,7 +282,7 @@ test_expect_success 'rev-parse --disambiguate' '
# commits created by commit-tree in earlier tests share a
# different prefix.
git rev-parse --disambiguate=000000000 >actual &&
- test $(wc -l <actual) = 16 &&
+ test_line_count = 16 actual &&
test "$(sed -e "s/^\(.........\).*/\1/" actual | sort -u)" = 000000000
'