validate:launcher: Add a way to force stdout coloring

This commit is contained in:
Thibault Saunier 2019-03-19 09:43:55 -03:00 committed by Thibault Saunier
parent ac7efe9500
commit c8a3b34a3a

View file

@ -89,6 +89,8 @@ class Protocols(object):
def supports_ansi_colors():
if 'GST_VALIDATE_LAUNCHER_FORCE_COLORS' in os.environ:
return True
platform = sys.platform
supported_platform = platform != 'win32' or 'ANSICON' in os.environ
# isatty is not always implemented, #6223.