{"thread":{"id":"52348","subject":"[PATCH] t1512: use test_line_count","startedAt":"2019-11-26T18:21:48Z","lastAt":"2019-11-26T18:21:48Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"387096","messageId":"c926a7fd-71c4-269e-4352-207edddf85f2@web.de","threadId":"52348","inReplyTo":null,"subject":"[PATCH] t1512: use test_line_count","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2019-11-26T18:21:41Z","receivedAt":"2019-11-26T18:21:48Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Use test_line_count to check if the number of lines matches\nexpectations, for improved consistency and nicer debug output.\n\nSigned-off-by: René Scharfe <l.s.r@web.de>\n---\n t/t1512-rev-parse-disambiguation.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/t/t1512-rev-parse-disambiguation.sh b/t/t1512-rev-parse-disambiguation.sh\nindex c19fb500cb..f06b045edd 100755\n--- a/t/t1512-rev-parse-disambiguation.sh\n+++ b/t/t1512-rev-parse-disambiguation.sh\n@@ -282,7 +282,7 @@ test_expect_success 'rev-parse --disambiguate' '\n \t# commits created by commit-tree in earlier tests share a\n \t# different prefix.\n \tgit rev-parse --disambiguate=000000000 >actual &&\n-\ttest $(wc -l <actual) = 16 &&\n+\ttest_line_count = 16 actual &&\n \ttest \"$(sed -e \"s/^\\(.........\\).*/\\1/\" actual | sort -u)\" = 000000000\n '\n\n--\n2.24.0\n"}]}