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>

Junio C Hamano committed Aug 8, 2011 at 11:51 UTC 3f4ab627146fcb1e1887198f520f39fb84fde73a
5 files changed +4 -9
t/t1013-loose-object-format.sh
-2
@@ -26,8 +26,6 @@ standard format, deflated with 4KB window size: Agit/JGit on Android
26 '
27
28 . ./test-lib.sh
29 -LF='
30 -'
29
30 assert_blob_equals() {
31 printf "%s" "$2" >expected &&
t/t1020-subdirectory.sh
-2
@@ -17,8 +17,6 @@ test_expect_success setup '
17 cp one original.one &&
18 cp dir/two original.two
19 '
20 -LF='
21 -'
20
21 test_expect_success 'update-index and ls-files' '
22 git update-index --add one &&
t/t3902-quoted.sh
-2
@@ -10,8 +10,6 @@ test_description='quoted output'
10 FN='濱野'
11 GN='純'
12 HT=' '
13 -LF='
14 -'
13 DQ='"'
14
15 echo foo 2>/dev/null > "Name and an${HT}HT"
t/t7800-difftool.sh
-3
@@ -10,9 +10,6 @@ Testing basic diff tool invocation
10
11 . ./test-lib.sh
12
13 -LF='
14 -'
15 -
13 remove_config_vars()
14 {
15 # Unset all config variables used by git-difftool
t/test-lib.sh
+4
@@ -92,6 +92,10 @@ _x40="$_x05$_x05$_x05$_x05$_x05$_x05$_x05$_x05"
92 # Zero SHA-1
93 _z40=0000000000000000000000000000000000000000
94
95 +# Line feed
96 +LF='
97 +'
98 +
99 # Each test should start with something like this, after copyright notices:
100 #
101 # test_description='Description of this test...