Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit eef39f8

Browse files
aspiersgitster
authored andcommitted
t0008: remove duplicated test fixture data
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c19387e commit eef39f8

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

t/t0008-ignores.sh

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -575,21 +575,6 @@ cat <<-\EOF >stdin
575575
b/globaltwo
576576
../b/globaltwo
577577
EOF
578-
cat <<-\EOF >expected-default
579-
../one
580-
one
581-
b/on
582-
b/one
583-
b/one one
584-
b/one two
585-
"b/one\"three"
586-
b/two
587-
b/twooo
588-
../globaltwo
589-
globaltwo
590-
b/globaltwo
591-
../b/globaltwo
592-
EOF
593578
cat <<-EOF >expected-verbose
594579
.gitignore:1:one ../one
595580
.gitignore:1:one one
@@ -605,6 +590,7 @@ cat <<-EOF >expected-verbose
605590
$global_excludes:2:!globaltwo b/globaltwo
606591
$global_excludes:2:!globaltwo ../b/globaltwo
607592
EOF
593+
sed -e 's/.* //' expected-verbose >expected-default
608594

609595
sed -e 's/^"//' -e 's/\\//' -e 's/"$//' stdin | \
610596
tr "\n" "\0" >stdin0

0 commit comments

Comments
 (0)