]> git.ipfire.org Git - thirdparty/git.git/commit - t/t4014-format-patch.sh
t4014: use test_line_count() where possible
authorDenton Liu <liu.denton@gmail.com>
Tue, 27 Aug 2019 04:05:10 +0000 (00:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 5 Sep 2019 19:58:52 +0000 (12:58 -0700)
commit6bd26f58ea27914547ff65f367a3b60f77a4d183
tree10235c91f43b579f883b0713dd0af97715eb779b
parentc6ec6dadba52a5186739fea4cf8fa2e26feb9e70
t4014: use test_line_count() where possible

Convert all instances of `cnt=$(... | wc -l) && test $cnt = N` into uses
of `test_line_count()`.

While we're at it, convert one instance of a Git command upstream of a
pipe into two commands. This prevents a failure of a Git command from
being masked since only the return code of the last member of the pipe
is shown.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4014-format-patch.sh