summaryrefslogtreecommitdiff
path: root/t/t5616-partial-clone.sh
diff options
context:
space:
mode:
authorLibravatar Matthew DeVore <matvore@google.com>2018-10-12 13:01:41 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-10-15 12:43:17 +0900
commitd9e6d0942bb9f9fe9e4cca9670181e5b59074bcb (patch)
treecabb90e34c49bc6207b10a510fd87857c716c736 /t/t5616-partial-clone.sh
parentlist-objects-filter: implement filter tree:0 (diff)
downloadtgif-d9e6d0942bb9f9fe9e4cca9670181e5b59074bcb.tar.xz
filter-trees: code clean-up of tests
A few trivial updates to test to match the current best practices. - avoid "grep -q" that strips potentially useful output from tests running under "-v". - use test_write_lines to prepare multi-line expected output file. - reserve use of test_must_fail to "git" commands. Signed-off-by: Matthew DeVore <matvore@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5616-partial-clone.sh')
-rwxr-xr-xt/t5616-partial-clone.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5616-partial-clone.sh b/t/t5616-partial-clone.sh
index 53fbf7db88..392caa08fd 100755
--- a/t/t5616-partial-clone.sh
+++ b/t/t5616-partial-clone.sh
@@ -192,7 +192,7 @@ test_expect_success 'use fsck before and after manually fetching a missing subtr
xargs -n1 git -C dst cat-file -t >fetched_types &&
sort -u fetched_types >unique_types.observed &&
- printf "blob\ncommit\ntree\n" >unique_types.expected &&
+ test_write_lines blob commit tree >unique_types.expected &&
test_cmp unique_types.expected unique_types.observed
'