summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-08-08 18:51:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-08-11 20:02:47 (GMT)
commit3f4ab627146fcb1e1887198f520f39fb84fde73a (patch)
treee0b26610ba632f8c55d857e2a5620550c749f872 /t/test-lib.sh
parent7f684a2aff636f44a5063c05cf84c0db0460ae1a (diff)
downloadgit-3f4ab627146fcb1e1887198f520f39fb84fde73a.zip
git-3f4ab627146fcb1e1887198f520f39fb84fde73a.tar.gz
git-3f4ab627146fcb1e1887198f520f39fb84fde73a.tar.bz2
test: consolidate definition of $LF
As we seem to need this variable that holds a single LF character in many places, define it in test-lib.sh and let the test scripts use it. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--t/test-lib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index df25f17..9d746b0 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -92,6 +92,10 @@ _x40="$_x05$_x05$_x05$_x05$_x05$_x05$_x05$_x05"
# Zero SHA-1
_z40=0000000000000000000000000000000000000000
+# Line feed
+LF='
+'
+
# Each test should start with something like this, after copyright notices:
#
# test_description='Description of this test...