tests: modernise style: more uses of test_line_count

Prefer:

  test_line_count <OP> COUNT FILE

over:

  test $(wc -l <FILE) <OP> COUNT

(or similar usages) in several tests.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Stefano Lattarini
2012-04-11 13:24:01 +02:00
committed by Junio C Hamano
parent e8dde3e5f9
commit 3fb0459bc8
19 changed files with 65 additions and 74 deletions

View File

@ -234,7 +234,7 @@ EOF
test_expect_success 'status should only print one line' '
git submodule status >lines &&
test $(wc -l <lines) = 1
test_line_count = 1 lines
'
test_expect_success 'setup - fetch commit name from submodule' '