Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Side by Side Diff: build/android/pylib/remote/device/remote_device_gtest_run.py

Issue 814543002: [Android] Fix remote device log parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Run specific test on specific environment.""" 5 """Run specific test on specific environment."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 import sys 9 import sys
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 runner_package = self.DEFAULT_RUNNER_PACKAGE 42 runner_package = self.DEFAULT_RUNNER_PACKAGE
43 logging.info('Using default runner package: %s', 43 logging.info('Using default runner package: %s',
44 self.DEFAULT_RUNNER_TYPE) 44 self.DEFAULT_RUNNER_TYPE)
45 else: 45 else:
46 runner_package = self._env.runner_package 46 runner_package = self._env.runner_package
47 47
48 self._test_id = self._UploadTestToDevice(runner_type) 48 self._test_id = self._UploadTestToDevice(runner_type)
49 config_body = {'runner': runner_package} 49 config_body = {'runner': runner_package}
50 self._SetTestConfig(runner_type, config_body) 50 self._SetTestConfig(runner_type, config_body)
51 51
52 _INSTRUMENTATION_STREAM_LEADER = 'INSTRUMENTATION_STATUS: stream='
53
52 #override 54 #override
53 def _ParseTestResults(self): 55 def _ParseTestResults(self):
54 logging.info('Parsing results from stdout.') 56 logging.info('Parsing results from stdout.')
55 output = self._results['results']['output'].splitlines() 57 output = self._results['results']['output'].splitlines()
58 output = (l[len(self._INSTRUMENTATION_STREAM_LEADER):] for l in output
59 if l.startswith(self._INSTRUMENTATION_STREAM_LEADER))
56 results_list = self._test_instance.ParseGTestOutput(output) 60 results_list = self._test_instance.ParseGTestOutput(output)
57 results = base_test_result.TestRunResults() 61 results = base_test_result.TestRunResults()
58 results.AddResults(results_list) 62 results.AddResults(results_list)
59 return results 63 return results
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698