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:

committed by
Junio C Hamano

parent
e8dde3e5f9
commit
3fb0459bc8
@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user