summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-06-16 10:05:37 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-06-16 10:05:38 -0700
commit79e539404c016e894d8a4db8f43762842a066afc (patch)
treeda07cd8e80c23c5c089ab1042c9e95d7bb1d6083 /t/test-lib-functions.sh
parentSync with maint (diff)
parentpatch-id-test: test stable and unstable behaviour (diff)
downloadtgif-79e539404c016e894d8a4db8f43762842a066afc.tar.xz
Merge branch 'mt/patch-id-stable' (early part)
* 'mt/patch-id-stable' (early part): patch-id-test: test stable and unstable behaviour patch-id: make it stable against hunk reordering test doc: test_write_lines does not split its arguments test: add test_write_lines helper
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 158e10a67e..f5815350d3 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -717,6 +717,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" "$@"
}