Re: [libvirt] [PATCH] tests: fix TTY check in virTestUseTerminalColors()

2017-11-10 Thread Martin Kletzander
On Thu, Nov 09, 2017 at 01:31:03PM +0100, Pino Toscano wrote: Since colors would be used when writing to stdout, then check that stdout is a TTY, instead of stdin. This avoids the usage of terminal color codes when the output is directed to file. Hehe, nice typo, I guess =) ACK ---

[libvirt] [PATCH] tests: fix TTY check in virTestUseTerminalColors()

2017-11-09 Thread Pino Toscano
Since colors would be used when writing to stdout, then check that stdout is a TTY, instead of stdin. This avoids the usage of terminal color codes when the output is directed to file. --- tests/testutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testutils.c