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

Side by Side Diff: build/android/pylib/gtest/test_package.py

Issue 19040002: [Android] Convert more test targets to use isolate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add maruel/csharp as owners for isolate files Created 7 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « build/android/pylib/gtest/dispatch.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 5
6 import logging 6 import logging
7 import os 7 import os
8 import re 8 import re
9 9
10 from pylib import constants 10 from pylib import constants
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 if test[0] != ' ' and test.endswith('.'): 80 if test[0] != ' ' and test.endswith('.'):
81 current = test 81 current = test
82 continue 82 continue
83 if 'YOU HAVE' in test: 83 if 'YOU HAVE' in test:
84 break 84 break
85 test_name = test[2:] 85 test_name = test[2:]
86 if not any([test_name.startswith(x) for x in disabled_prefixes]): 86 if not any([test_name.startswith(x) for x in disabled_prefixes]):
87 ret += [current + test_name] 87 ret += [current + test_name]
88 return ret 88 return ret
89 89
90 def PushDataAndPakFiles(self):
91 external_storage = self.adb.GetExternalStorage()
92 if (self.test_suite_basename == 'ui_unittests'):
93 self.adb.PushIfNeeded(
94 self.test_suite_dirname + '/chrome.pak',
95 external_storage + '/paks/chrome.pak')
96 self.adb.PushIfNeeded(
97 self.test_suite_dirname + '/locales/en-US.pak',
98 external_storage + '/paks/en-US.pak')
99 if self.test_suite_basename in ('content_unittests',
100 'components_unittests'):
101 self.adb.PushIfNeeded(
102 self.test_suite_dirname + '/content_resources.pak',
103 external_storage + '/paks/content_resources.pak')
104 if self.test_suite_basename == 'breakpad_unittests':
105 self.adb.PushIfNeeded(
106 self.test_suite_dirname + '/linux_dumper_unittest_helper',
107 constants.TEST_EXECUTABLE_DIR + '/linux_dumper_unittest_helper')
108 if self.test_suite_basename == 'content_browsertests':
109 self.adb.PushIfNeeded(
110 self.test_suite_dirname +
111 '/../content_shell/assets/content_shell.pak',
112 external_storage + '/paks/content_shell.pak')
113
114 def _WatchTestOutput(self, p): 90 def _WatchTestOutput(self, p):
115 """Watches the test output. 91 """Watches the test output.
116 92
117 Args: 93 Args:
118 p: the process generating output as created by pexpect.spawn. 94 p: the process generating output as created by pexpect.spawn.
119 95
120 Returns: 96 Returns:
121 A TestRunResults object. 97 A TestRunResults object.
122 """ 98 """
123 results = base_test_result.TestRunResults() 99 results = base_test_result.TestRunResults()
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 finally: 158 finally:
183 p.close() 159 p.close()
184 160
185 ret_code = self._GetGTestReturnCode() 161 ret_code = self._GetGTestReturnCode()
186 if ret_code: 162 if ret_code:
187 logging.critical( 163 logging.critical(
188 'gtest exit code: %d\npexpect.before: %s\npexpect.after: %s', 164 'gtest exit code: %d\npexpect.before: %s\npexpect.after: %s',
189 ret_code, p.before, p.after) 165 ret_code, p.before, p.after)
190 166
191 return results 167 return results
OLDNEW
« no previous file with comments | « build/android/pylib/gtest/dispatch.py ('k') | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698