summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2013-04-11 13:05:09 +0100
committerJunio C Hamano <gitster@pobox.com>2013-04-11 11:01:58 -0700
commiteef39f8124ba6045bdc1ae6e665d3d65e28385ab (patch)
treeb0217a96796054476fb6a332ba93832dbf34156d
parentc19387e79947de9307af06ce92a83eaf786153b7 (diff)
downloadgit-eef39f8124ba6045bdc1ae6e665d3d65e28385ab.tar.gz
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 <git@adamspiers.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t0008-ignores.sh16
1 files changed, 1 insertions, 15 deletions
diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh
index 9c1bde1fd6..314a86d961 100755
--- a/t/t0008-ignores.sh
+++ b/t/t0008-ignores.sh
@@ -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