run.py: Automatically enable color output in android tests (posix shell only)
This commit is contained in:
parent
dd1edc61c5
commit
f208535bb6
@ -644,6 +644,9 @@ class RunInfo(object):
|
|||||||
return
|
return
|
||||||
elif self.targetos == "android":
|
elif self.targetos == "android":
|
||||||
hostlogpath = ""
|
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:
|
try:
|
||||||
andoidcwd = "/data/bin/" + getpass.getuser().replace(" ","") + "_" + self.options.mode +"/"
|
andoidcwd = "/data/bin/" + getpass.getuser().replace(" ","") + "_" + self.options.mode +"/"
|
||||||
exename = os.path.basename(exe)
|
exename = os.path.basename(exe)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user