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.
Showing
想要评论请 注册 或 登录