1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-13 22:18:49 +02:00

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>
This commit is contained in:
Junio C Hamano 2011-08-08 11:51:00 -07:00
parent 7f684a2aff
commit 3f4ab62714
5 changed files with 4 additions and 9 deletions

View File

@ -26,8 +26,6 @@ standard format, deflated with 4KB window size: Agit/JGit on Android
'
. ./test-lib.sh
LF='
'
assert_blob_equals() {
printf "%s" "$2" >expected &&

View File

@ -17,8 +17,6 @@ test_expect_success setup '
cp one original.one &&
cp dir/two original.two
'
LF='
'
test_expect_success 'update-index and ls-files' '
git update-index --add one &&

View File

@ -10,8 +10,6 @@ test_description='quoted output'
FN='濱野'
GN='純'
HT=' '
LF='
'
DQ='"'
echo foo 2>/dev/null > "Name and an${HT}HT"

View File

@ -10,9 +10,6 @@ Testing basic diff tool invocation
. ./test-lib.sh
LF='
'
remove_config_vars()
{
# Unset all config variables used by git-difftool

View File

@ -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...