t4214: generate expect in their own test cases
commit63be8c8dd7f6ddb90613162b0dc05fa11ee60eec
authorDenton Liu <liu.denton@gmail.com>
Fri, 4 Oct 2019 00:23:17 +0000 (3 17:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 Oct 2019 00:28:00 +0000 (4 09:28 +0900)
treeda7fb286493e9460affb8067b2b238107943933e
parenta7a5590c6ecd75157c24f6dac1624b0e70afeb23
t4214: generate expect in their own test cases

Before, the expect files of the test case were being generated in the
setup method. However, it would make more sense to generate these files
within the test cases that actually use them so that it's obvious to
future readers where the expected values are coming from.

Move the generation of the expect files in their own respective test
cases.

While we're at it, we want to establish a pattern in this test suite
that, firstly, a non-colored test case is given then, immediately after,
the colored version is given.

Switch test cases "log --graph with tricky octopus merge, no color" and
"log --graph with tricky octopus merge with colors" so that the "no
color" version appears first.

This patch is best viewed with `--color-moved`.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4214-log-graph-octopus.sh