t3701: use test-terminal to collect color output
authorJeff King <peff@peff.net>
Tue, 3 Oct 2017 13:42:15 +0000 (09:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Oct 2017 02:32:56 +0000 (11:32 +0900)
commit8552972b133ee5147f3af11ab21cf4b1d04e97e5
tree4f59dc49251c213e1c3c0f0c89dfc5bcc01e7341
parenta655a595957b873e3fa9f8569568536eb547c4c8
t3701: use test-terminal to collect color output

When testing whether "add -p" can generate colors, we set
color.ui to "always". This isn't a very good test, as in the
real-world a user typically has "auto" coupled with stdout
going to a terminal (and it's plausible that this could mask
a real bug in add--interactive if we depend on plumbing's
isatty check).

Let's switch to test_terminal, which gives us a more
realistic environment. This also prepare us for future
changes to the "always" color option.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3701-add-interactive.sh