summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2020-05-28 01:14:55 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2020-05-28 01:14:55 +0000
commit51c065d4e70d34c962c65c77e11556695f500347 (patch)
treede392301419c1bcd75586a9c7bd5a7857739c24e
parent8ef9b0d0343e62005c976e6a9eec49734af02148 (diff)
parent56acfb6bbee923bf188656c476c8b436e6ef2498 (diff)
downloadvndk-android11-d1-s1-release.tar.gz
Change-Id: Icb78c4ee25162a26fa113b3cdc079a8598c36dd8
-rw-r--r--abi/vts_vndk_abi_test.py4
-rw-r--r--dependency/vts_vndk_dependency_test.py4
-rw-r--r--files/vts_vndk_files_test.py4
3 files changed, 12 insertions, 0 deletions
diff --git a/abi/vts_vndk_abi_test.py b/abi/vts_vndk_abi_test.py
index f9c81f2..a14c9bb 100644
--- a/abi/vts_vndk_abi_test.py
+++ b/abi/vts_vndk_abi_test.py
@@ -19,6 +19,7 @@ import json
import logging
import os
import shutil
+import sys
import tempfile
import unittest
@@ -358,6 +359,9 @@ class VtsVndkAbiTest(unittest.TestCase):
if __name__ == "__main__":
+ # The logs are written to stdout so that TradeFed test runner can parse the
+ # results from stderr.
+ logging.basicConfig(stream=sys.stdout)
# Setting verbosity is required to generate output that the TradeFed test
# runner can parse.
unittest.main(verbosity=3)
diff --git a/dependency/vts_vndk_dependency_test.py b/dependency/vts_vndk_dependency_test.py
index cd1ccf0..fb0431a 100644
--- a/dependency/vts_vndk_dependency_test.py
+++ b/dependency/vts_vndk_dependency_test.py
@@ -23,6 +23,7 @@ import os
import posixpath as target_path_module
import re
import shutil
+import sys
import tempfile
import unittest
@@ -461,6 +462,9 @@ class VtsVndkDependencyTest(unittest.TestCase):
if __name__ == "__main__":
+ # The logs are written to stdout so that TradeFed test runner can parse the
+ # results from stderr.
+ logging.basicConfig(stream=sys.stdout)
# Setting verbosity is required to generate output that the TradeFed test
# runner can parse.
unittest.main(verbosity=3)
diff --git a/files/vts_vndk_files_test.py b/files/vts_vndk_files_test.py
index 907b15b..51da520 100644
--- a/files/vts_vndk_files_test.py
+++ b/files/vts_vndk_files_test.py
@@ -18,6 +18,7 @@
import logging
import os
import posixpath as target_path_module
+import sys
import unittest
from vts.testcases.vndk import utils
@@ -180,6 +181,9 @@ class VtsVndkFilesTest(unittest.TestCase):
if __name__ == "__main__":
+ # The logs are written to stdout so that TradeFed test runner can parse the
+ # results from stderr.
+ logging.basicConfig(stream=sys.stdout)
# Setting verbosity is required to generate output that the TradeFed test
# runner can parse.
unittest.main(verbosity=3)