OLD | NEW |
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 tempfile | 9 import tempfile |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 _INSTRUMENTATION_STREAM_LEADER = 'INSTRUMENTATION_STATUS: stream=' | 76 _INSTRUMENTATION_STREAM_LEADER = 'INSTRUMENTATION_STATUS: stream=' |
77 | 77 |
78 #override | 78 #override |
79 def _ParseTestResults(self): | 79 def _ParseTestResults(self): |
80 logging.info('Parsing results from stdout.') | 80 logging.info('Parsing results from stdout.') |
81 results = base_test_result.TestRunResults() | 81 results = base_test_result.TestRunResults() |
82 output = self._results['results']['output'].splitlines() | 82 output = self._results['results']['output'].splitlines() |
83 output = (l[len(self._INSTRUMENTATION_STREAM_LEADER):] for l in output | 83 output = (l[len(self._INSTRUMENTATION_STREAM_LEADER):] for l in output |
84 if l.startswith(self._INSTRUMENTATION_STREAM_LEADER)) | 84 if l.startswith(self._INSTRUMENTATION_STREAM_LEADER)) |
85 results_list = self._test_instance.ParseGTestOutput(output) | 85 results_list = gtest_test_instance.ParseGTestOutput(output) |
86 results.AddResults(results_list) | 86 results.AddResults(results_list) |
87 | 87 |
88 self._DetectPlatformErrors(results) | 88 self._DetectPlatformErrors(results) |
89 return results | 89 return results |
OLD | NEW |