diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-12-07 02:09:22 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-07 02:09:22 +0300 |
commit | 4ba74ca901407a64186c40ed9e59bbd9b2277993 (patch) | |
tree | 3535378b099e5b9082ab8950ebef838fc853901e /t/t1512-rev-parse-disambiguation.sh | |
parent | f233c9f4550a831a69892e0a38db2a7654beb995 (diff) | |
parent | 271c351b2f0cd252d84fbe30d9a03e6f7b930e9b (diff) |
Merge branch 'rs/test-cleanup'
Test cleanup.
* rs/test-cleanup:
t7811: don't create unused file
t9300: don't create unused file
test: use test_must_be_empty F instead of test_cmp empty F
test: use test_must_be_empty F instead of test -z $(cat F)
t1400: use test_must_be_empty
t1410: use test_line_count
t1512: use test_line_count
Diffstat (limited to 't/t1512-rev-parse-disambiguation.sh')
-rwxr-xr-x | t/t1512-rev-parse-disambiguation.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t1512-rev-parse-disambiguation.sh b/t/t1512-rev-parse-disambiguation.sh index 25744e270a..18fa6cf40d 100755 --- a/t/t1512-rev-parse-disambiguation.sh +++ b/t/t1512-rev-parse-disambiguation.sh @@ -282,7 +282,7 @@ test_expect_success 'rev-parse --disambiguate' ' # commits created by commit-tree in earlier tests share a # different prefix. git rev-parse --disambiguate=000000000 >actual && - test $(wc -l <actual) = 16 && + test_line_count = 16 actual && test "$(sed -e "s/^\(.........\).*/\1/" actual | sort -u)" = 000000000 ' |