test: add test_write_lines helper
API and implementation as suggested by Junio. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
5f95c9f850
commit
ac9afcc31c
@ -712,6 +712,11 @@ test_ln_s_add () {
|
||||
fi
|
||||
}
|
||||
|
||||
# This function writes out its parameters, one per line
|
||||
test_write_lines () {
|
||||
printf "%s\n" "$@"
|
||||
}
|
||||
|
||||
perl () {
|
||||
command "$PERL_PATH" "$@"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user