t/t8003-blame-corner-cases.sh: Use here documents

Somehow, this test was using:

{
	echo A
	echo B
} > file

block to feed file contents. This changes those to the form most common
in git test scripts:

cat >file <<-\EOF
A
B
EOF

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Mike Hommey 2016-07-16 08:23:46 +09:00 committed by Junio C Hamano
parent 3b75ee9327
commit c66b470082

View File

@ -41,12 +41,12 @@ test_expect_success setup '
test_tick && test_tick &&
GIT_AUTHOR_NAME=Fourth git commit -m Fourth && GIT_AUTHOR_NAME=Fourth git commit -m Fourth &&
{ cat >cow <<-\EOF &&
echo ABC ABC
echo DEF DEF
echo XXXX XXXX
echo GHIJK GHIJK
} >cow && EOF
git add cow && git add cow &&
test_tick && test_tick &&
GIT_AUTHOR_NAME=Fifth git commit -m Fifth GIT_AUTHOR_NAME=Fifth git commit -m Fifth
@ -115,11 +115,11 @@ test_expect_success 'append with -C -C -C' '
test_expect_success 'blame wholesale copy' ' test_expect_success 'blame wholesale copy' '
git blame -f -C -C1 HEAD^ -- cow | sed -e "$pick_fc" >current && git blame -f -C -C1 HEAD^ -- cow | sed -e "$pick_fc" >current &&
{ cat >expected <<-\EOF &&
echo mouse-Initial mouse-Initial
echo mouse-Second mouse-Second
echo mouse-Third mouse-Third
} >expected && EOF
test_cmp expected current test_cmp expected current
' '
@ -127,12 +127,12 @@ test_expect_success 'blame wholesale copy' '
test_expect_success 'blame wholesale copy and more' ' test_expect_success 'blame wholesale copy and more' '
git blame -f -C -C1 HEAD -- cow | sed -e "$pick_fc" >current && git blame -f -C -C1 HEAD -- cow | sed -e "$pick_fc" >current &&
{ cat >expected <<-\EOF &&
echo mouse-Initial mouse-Initial
echo mouse-Second mouse-Second
echo cow-Fifth cow-Fifth
echo mouse-Third mouse-Third
} >expected && EOF
test_cmp expected current test_cmp expected current
' '