diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2014-04-27 22:15:47 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-11 00:09:00 +0400 |
commit | ac9afcc31cd1f7c00c2747132e5f512173613fd9 (patch) | |
tree | bc03b31f830e29630af35e9afbd2e796f1dd2e94 /t/test-lib-functions.sh | |
parent | 5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff) |
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>
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r-- | t/test-lib-functions.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index aeae3ca769..213fd0f3c5 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -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" "$@" } |