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

@ -43,7 +43,7 @@ git commit -m B-super-added'
cd "$base_dir"
test_expect_success 'after add: existence of info/alternates' \
'test `wc -l <super/.git/modules/sub/objects/info/alternates` = 1'
'test_line_count = 1 super/.git/modules/sub/objects/info/alternates'
cd "$base_dir"
@ -66,7 +66,7 @@ test_expect_success 'update with reference' \
cd "$base_dir"
test_expect_success 'after update: existence of info/alternates' \
'test `wc -l <super-clone/.git/modules/sub/objects/info/alternates` = 1'
'test_line_count = 1 super-clone/.git/modules/sub/objects/info/alternates'
cd "$base_dir"