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
@ -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' '
|
||||
|
Reference in New Issue
Block a user