mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 04:36:36 +08:00
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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user