t0008: remove duplicated test fixture data
authorAdam Spiers <git@adamspiers.org>
Thu, 11 Apr 2013 12:05:09 +0000 (13:05 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Apr 2013 18:01:58 +0000 (11:01 -0700)
The expected contents of STDOUT for the final --stdin tests can be
derived from the expected contents of STDOUT for the same tests when
--verbose is given, in the same way that test_expect_success_multi
derives this for earlier tests.

Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0008-ignores.sh
index 9c1bde1fd6e6424f7af732556656a9daf9be350b..314a86d961876abf9c777addfd5f7b5bfb82eac8 100755 (executable)
@@ -575,21 +575,6 @@ cat <<-\EOF >stdin
        b/globaltwo
        ../b/globaltwo
 EOF
-cat <<-\EOF >expected-default
-       ../one
-       one
-       b/on
-       b/one
-       b/one one
-       b/one two
-       "b/one\"three"
-       b/two
-       b/twooo
-       ../globaltwo
-       globaltwo
-       b/globaltwo
-       ../b/globaltwo
-EOF
 cat <<-EOF >expected-verbose
        .gitignore:1:one        ../one
        .gitignore:1:one        one
@@ -605,6 +590,7 @@ cat <<-EOF >expected-verbose
        $global_excludes:2:!globaltwo   b/globaltwo
        $global_excludes:2:!globaltwo   ../b/globaltwo
 EOF
+sed -e 's/.*   //' expected-verbose >expected-default
 
 sed -e 's/^"//' -e 's/\\//' -e 's/"$//' stdin | \
        tr "\n" "\0" >stdin0