tests: use test_write_lines() to generate line-oriented output
commit0849541268a3aca9381591aed87b6864a203709b
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 9 Dec 2021 05:11:05 +0000 (9 00:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Dec 2021 18:29:48 +0000 (13 10:29 -0800)
tree00aa5e565425fd234928d17ad17e91c521d01d38
parent020b813f400b55528edca00aff4d8e95080376f6
tests: use test_write_lines() to generate line-oriented output

Take advantage of test_write_lines() to generate line-oriented output
rather than using for-loops or a series of `echo` commands. Not only is
test_write_lines() a natural fit for such a task, but there is less
opportunity for a broken &&-chain.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
26 files changed:
t/t0020-crlf.sh
t/t0026-eol-config.sh
t/t1020-subdirectory.sh
t/t1512-rev-parse-disambiguation.sh
t/t2103-update-index-ignore-missing.sh
t/t3417-rebase-whitespace-fix.sh
t/t4013-diff-various.sh
t/t4014-format-patch.sh
t/t4019-diff-wserror.sh
t/t4105-apply-fuzz.sh
t/t4116-apply-reverse.sh
t/t4117-apply-reject.sh
t/t4118-apply-empty-context.sh
t/t4124-apply-ws-rule.sh
t/t4126-apply-empty.sh
t/t4127-apply-same-fn.sh
t/t4151-am-abort.sh
t/t5300-pack-object.sh
t/t5306-pack-nobase.sh
t/t5611-clone-config.sh
t/t6019-rev-list-ancestry-path.sh
t/t6060-merge-index.sh
t/t6409-merge-subtree.sh
t/t6417-merge-ours-theirs.sh
t/t7501-commit-basic-functionality.sh
t/t8003-blame-corner-cases.sh