Chromium Code Reviews| Index: build/android/test_runner.py |
| diff --git a/build/android/test_runner.py b/build/android/test_runner.py |
| index 08ec868e2b55155acc85e226f9088fae6134bda1..3d9c7d68e277cb2c6f1b09c8d95c981c3679348e 100755 |
| --- a/build/android/test_runner.py |
| +++ b/build/android/test_runner.py |
| @@ -12,6 +12,7 @@ import contextlib |
| import itertools |
| import logging |
| import os |
| +import shutil |
| import signal |
| import sys |
| import threading |
| @@ -36,6 +37,7 @@ from pylib.base import test_run_factory |
| from pylib.constants import host_paths |
| from pylib.results import json_results |
| from pylib.results import report_results |
| +from pylib.utils import logdog_helper |
| from py_utils import contextlib_ext |
| @@ -115,6 +117,9 @@ def AddCommonOptions(parser): |
| help='Path to save test_runner trace data to. This option ' |
| 'has been implemented for gtest, instrumentation ' |
| 'test and perf test.') |
| + group.add_argument('--upload-full-logcat', |
| + dest='upload_full_logcat', |
| + help='The logcat file to upload to logdog.') |
| logcat_output_group = group.add_mutually_exclusive_group() |
| logcat_output_group.add_argument( |
| @@ -774,6 +779,10 @@ def RunTestsInPlatformMode(args): |
| str(all_pass), |
| str(tot_tests), |
| str(iteration_count)) |
| + if args.upload_full_logcat: |
| + with open(args.upload_full_logcat) as src: |
|
mikecase (-- gone --)
2017/02/27 20:25:48
should this be args.logcat_output_file?
BigBossZhiling
2017/02/27 22:47:51
I think it should still be args.upload_full_logcat
jbudorick
2017/02/27 22:49:15
upload-full-logcat definitely should not be respon
BigBossZhiling
2017/02/28 07:29:53
Done.
|
| + with logdog_helper.open_text('unified_logcats') as dst: |
| + shutil.copyfileobj(src, dst) |
| if args.command == 'perf' and (args.steps or args.single_step): |
| return 0 |