diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-04-11 15:24:01 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-11 20:32:20 +0400 |
commit | 3fb0459bc89bebb07e0603ce3ce92dbbc8a39ea4 (patch) | |
tree | b8e4ab3fc39f64973168b4656c57d2874e1abdaf /t/t6032-merge-large-rename.sh | |
parent | e8dde3e5f9ddb7cf95a6ff3cea6cf07c3a2db80d (diff) |
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>
Diffstat (limited to 't/t6032-merge-large-rename.sh')
-rwxr-xr-x | t/t6032-merge-large-rename.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t6032-merge-large-rename.sh b/t/t6032-merge-large-rename.sh index 94f010be8a..15beecc3c6 100755 --- a/t/t6032-merge-large-rename.sh +++ b/t/t6032-merge-large-rename.sh @@ -97,7 +97,7 @@ test_expect_success 'setup large simple rename' ' test_expect_success 'massive simple rename does not spam added files' ' sane_unset GIT_MERGE_VERBOSITY && git merge --no-stat simple-rename | grep -v Removing >output && - test 5 -gt "$(wc -l < output)" + test_line_count -lt 5 output ' test_done |