summaryrefslogtreecommitdiffstats
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-04-27 20:15:47 +0200
committerJunio C Hamano <gitster@pobox.com>2014-06-10 22:09:00 +0200
commitac9afcc31cd1f7c00c2747132e5f512173613fd9 (patch)
treebc03b31f830e29630af35e9afbd2e796f1dd2e94 /t/test-lib-functions.sh
parentGit 1.9.0 (diff)
downloadgit-ac9afcc31cd1f7c00c2747132e5f512173613fd9.tar.xz
git-ac9afcc31cd1f7c00c2747132e5f512173613fd9.zip
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 '')
-rw-r--r--t/test-lib-functions.sh5
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" "$@"
}