From f208535bb687cd9393acab99093da786a1a323ee Mon Sep 17 00:00:00 2001 From: Andrey Kamaev <no@email> Date: Thu, 26 Apr 2012 11:05:36 +0000 Subject: [PATCH] run.py: Automatically enable color output in android tests (posix shell only) --- modules/ts/misc/run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/ts/misc/run.py b/modules/ts/misc/run.py index 43bb347869..2bcc085a20 100644 --- a/modules/ts/misc/run.py +++ b/modules/ts/misc/run.py @@ -644,6 +644,9 @@ class RunInfo(object): return elif self.targetos == "android": hostlogpath = "" + usercolor = [a for a in args if a.startswith("--gtest_color=")] + if len(userlog) == 0 and _stdout.isatty() and hostos != "nt": + args.append("--gtest_color=yes") try: andoidcwd = "/data/bin/" + getpass.getuser().replace(" ","") + "_" + self.options.mode +"/" exename = os.path.basename(exe) -- 2.18.0