Adjust tests for not quoting SP.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-10-17 13:32:14 -07:00
Родитель 28fba290e3
Коммит 508c1d1c9b
1 изменённых файлов: 11 добавлений и 5 удалений

Просмотреть файл

@ -13,6 +13,7 @@ tree, index, and tree objects.
p0='no-funny' p0='no-funny'
p1='tabs and spaces' p1='tabs and spaces'
p2='just space'
cat >"$p0" <<\EOF cat >"$p0" <<\EOF
1. A quick brown fox jumps over the lazy cat, oops dog. 1. A quick brown fox jumps over the lazy cat, oops dog.
@ -21,24 +22,28 @@ cat >"$p0" <<\EOF
EOF EOF
cat >"$p1" "$p0" cat >"$p1" "$p0"
echo 'Foo Bar Baz' >"$p2"
echo 'no-funny' >expected echo 'just space
no-funny' >expected
test_expect_success 'git-ls-files no-funny' \ test_expect_success 'git-ls-files no-funny' \
'git-update-index --add "$p0" && 'git-update-index --add "$p0" "$p2" &&
git-ls-files >current && git-ls-files >current &&
diff -u expected current' diff -u expected current'
t0=`git-write-tree` t0=`git-write-tree`
echo "$t0" >t0 echo "$t0" >t0
echo 'no-funny echo 'just space
no-funny
"tabs\tand spaces"' >expected "tabs\tand spaces"' >expected
test_expect_success 'git-ls-files with-funny' \ test_expect_success 'git-ls-files with-funny' \
'git-update-index --add "$p1" && 'git-update-index --add "$p1" &&
git-ls-files >current && git-ls-files >current &&
diff -u expected current' diff -u expected current'
echo 'no-funny echo 'just space
no-funny
tabs and spaces' >expected tabs and spaces' >expected
test_expect_success 'git-ls-files -z with-funny' \ test_expect_success 'git-ls-files -z with-funny' \
'git-ls-files -z | tr \\0 \\012 >current && 'git-ls-files -z | tr \\0 \\012 >current &&
@ -47,7 +52,8 @@ test_expect_success 'git-ls-files -z with-funny' \
t1=`git-write-tree` t1=`git-write-tree`
echo "$t1" >t1 echo "$t1" >t1
echo 'no-funny echo 'just space
no-funny
"tabs\tand spaces"' >expected "tabs\tand spaces"' >expected
test_expect_success 'git-ls-tree with funny' \ test_expect_success 'git-ls-tree with funny' \
'git-ls-tree -r $t1 | sed -e "s/^[^ ]* //" >current && 'git-ls-tree -r $t1 | sed -e "s/^[^ ]* //" >current &&