t4015: separate common setup and per-test expectation
commit0ad782f2406fa13f626653a001b5f01a9f3fa40f
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 May 2015 18:43:08 +0000 (26 11:43 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 May 2015 19:45:20 +0000 (26 12:45 -0700)
treed08cd1ab0d427a8c8780556a00ece30680b87408
parentd55ef3e04459a5f1a24f494b873d8590f2523add
t4015: separate common setup and per-test expectation

The last two tests in the script were to

 - set up color.diff.* slots
 - set up an expectation for a single test
 - run that test and check the result

but split in a wrong way.  It did the first two in the first test
and the third one in the second test.  The latter two belong to each
other.  This matters when you plan to add more of these tests that
share the common coloring.

While at it, make sure we use a color different from old, which is
also red.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4015-diff-whitespace.sh