diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-04-11 13:24:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-11 09:32:20 -0700 |
commit | 3fb0459bc89bebb07e0603ce3ce92dbbc8a39ea4 (patch) | |
tree | b8e4ab3fc39f64973168b4656c57d2874e1abdaf /t/t5710-info-alternate.sh | |
parent | e8dde3e5f9ddb7cf95a6ff3cea6cf07c3a2db80d (diff) | |
download | git-3fb0459bc89bebb07e0603ce3ce92dbbc8a39ea4.tar.gz |
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/t5710-info-alternate.sh')
-rwxr-xr-x | t/t5710-info-alternate.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5710-info-alternate.sh b/t/t5710-info-alternate.sh index ef7127c1b3..aa045295de 100755 --- a/t/t5710-info-alternate.sh +++ b/t/t5710-info-alternate.sh @@ -18,7 +18,7 @@ reachable_via() { test_valid_repo() { git fsck --full > fsck.log && - test `wc -l < fsck.log` = 0 + test_line_count = 0 fsck.log } base_dir=`pwd` |