summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-04-27 18:15:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-10 20:09:00 (GMT)
commitac9afcc31cd1f7c00c2747132e5f512173613fd9 (patch)
treebc03b31f830e29630af35e9afbd2e796f1dd2e94 /t/test-lib-functions.sh
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac (diff)
downloadgit-ac9afcc31cd1f7c00c2747132e5f512173613fd9.zip
git-ac9afcc31cd1f7c00c2747132e5f512173613fd9.tar.gz
git-ac9afcc31cd1f7c00c2747132e5f512173613fd9.tar.bz2
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.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index aeae3ca..213fd0f 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" "$@"
}