diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-12-06 15:09:22 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-06 15:09:22 -0800 |
commit | 4ba74ca901407a64186c40ed9e59bbd9b2277993 (patch) | |
tree | 3535378b099e5b9082ab8950ebef838fc853901e /t/t1512-rev-parse-disambiguation.sh | |
parent | Merge branch 'sg/assume-no-todo-update-in-cherry-pick' (diff) | |
parent | t7811: don't create unused file (diff) | |
download | tgif-4ba74ca901407a64186c40ed9e59bbd9b2277993.tar.xz |
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 ' |