[PATCH 4/5] t0008: remove duplicated test fixture data
- From
Adam Spiers <git@adamspiers.org>
- Date
- Apr 11, 2013, 01:59 UTC
- Message-ID
- <1365645575-11428-4-git-send-email-git@adamspiers.org>
- In-Reply-To
- <1365645575-11428-1-git-send-email-git@adamspiers.org>
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> --- t/t0008-ignores.sh | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/t/t0008-ignores.sh b/t/t0008-ignores.sh index 0dd3ef7..80b731a 100755 --- a/t/t0008-ignores.sh +++ b/t/t0008-ignores.sh @@ -571,21 +571,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 @@ -601,6 +586,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
-- 1.8.2.1.347.g37e0606