Skip to content

Commit

Permalink
t0008: remove duplicated test fixture data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adam Spiers authored and Junio C Hamano committed Apr 11, 2013
1 parent c19387e commit eef39f8
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions t/t0008-ignores.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eef39f8

Please sign in to comment.