summaryrefslogtreecommitdiff
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-16 17:05:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-16 17:05:38 (GMT)
commit79e539404c016e894d8a4db8f43762842a066afc (patch)
treeda07cd8e80c23c5c089ab1042c9e95d7bb1d6083 /t/test-lib-functions.sh
parent75cc6c67e25656c1b19c7c8f6ca29d1463aefef4 (diff)
parent8f2514e95fe142954d1dd4408cc7cb413a275844 (diff)
downloadgit-79e539404c016e894d8a4db8f43762842a066afc.zip
git-79e539404c016e894d8a4db8f43762842a066afc.tar.gz
git-79e539404c016e894d8a4db8f43762842a066afc.tar.bz2
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 158e10a..f581535 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" "$@"
}