From 3fb0459bc89bebb07e0603ce3ce92dbbc8a39ea4 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 11 Apr 2012 13:24:01 +0200 Subject: tests: modernise style: more uses of test_line_count Prefer: test_line_count COUNT FILE over: test $(wc -l COUNT (or similar usages) in several tests. Signed-off-by: Stefano Lattarini Signed-off-by: Junio C Hamano --- t/t4035-diff-quiet.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 't/t4035-diff-quiet.sh') diff --git a/t/t4035-diff-quiet.sh b/t/t4035-diff-quiet.sh index e747e84227..cdb9202f57 100755 --- a/t/t4035-diff-quiet.sh +++ b/t/t4035-diff-quiet.sh @@ -15,65 +15,65 @@ test_expect_success 'setup' ' test_expect_success 'git diff-tree HEAD^ HEAD' ' git diff-tree --quiet HEAD^ HEAD >cnt - test $? = 1 && test $(wc -l cnt - test $? = 0 && test $(wc -l cnt - test $? = 1 && test $(wc -l cnt - test $? = 1 && test $(wc -l cnt - test $? = 0 && test $(wc -l cnt - test $? = 0 && test $(wc -l cnt - test $? = 0 && test $(wc -l cnt - test $? = 1 && test $(wc -l >b && echo 3 >c && git add . && { git diff-index --quiet --cached HEAD^ >cnt - test $? = 1 && test $(wc -l cnt - test $? = 1 && test $(wc -l cnt - test $? = 0 && test $(wc -l >c && { git diff-files --quiet >cnt - test $? = 1 && test $(wc -l cnt - test $? = 1 && test $(wc -l