]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: fix TTY check in virTestUseTerminalColors()
authorPino Toscano <ptoscano@redhat.com>
Thu, 9 Nov 2017 12:31:03 +0000 (13:31 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 10 Nov 2017 15:12:43 +0000 (16:12 +0100)
commitef5c8a91aab695acd8dce19182eb325b0fc65916
treea2f4bcabb37d16d7436ce5e19af73d053fc0ebf0
parent9324f67a572f9b32f25bc088fb9f34e736edc612
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.
tests/testutils.c