mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
tests: fix TTY check in virTestUseTerminalColors()
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.
This commit is contained in:
parent
9324f67a57
commit
ef5c8a91aa
@ -92,7 +92,7 @@ bool virTestOOMActive(void)
|
||||
|
||||
static int virTestUseTerminalColors(void)
|
||||
{
|
||||
return isatty(STDIN_FILENO);
|
||||
return isatty(STDOUT_FILENO);
|
||||
}
|
||||
|
||||
static unsigned int
|
||||
|
Loading…
Reference in New Issue
Block a user