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

Side by Side Diff: build/android/pylib/base/base_test_runner.py

Issue 13577003: [Android] Specify dependency files for instrumentation tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor change: Also add ssl/certs dep to contentshell Created 7 years, 8 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 | « no previous file | 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 import contextlib 5 import contextlib
6 import httplib 6 import httplib
7 import logging 7 import logging
8 import os 8 import os
9 import tempfile 9 import tempfile
10 import time 10 import time
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 Args: 71 Args:
72 test: A test to run. 72 test: A test to run.
73 73
74 Returns: 74 Returns:
75 Tuple containing: 75 Tuple containing:
76 (base_test_result.TestRunResults, tests to rerun or None) 76 (base_test_result.TestRunResults, tests to rerun or None)
77 """ 77 """
78 raise NotImplementedError 78 raise NotImplementedError
79 79
80 def PushDependencies(self):
81 """Push all dependencies to device once before all tests are run."""
82 pass
83
80 def SetUp(self): 84 def SetUp(self):
81 """Run once before all tests are run.""" 85 """Run once before all tests are run."""
82 Forwarder.KillDevice(self.adb, self.tool) 86 Forwarder.KillDevice(self.adb, self.tool)
87 self.PushDependencies()
83 88
84 def TearDown(self): 89 def TearDown(self):
85 """Run once after all tests are run.""" 90 """Run once after all tests are run."""
86 self.ShutdownHelperToolsForTestSuite() 91 self.ShutdownHelperToolsForTestSuite()
87 92
88 def CopyTestData(self, test_data_paths, dest_dir): 93 def CopyTestData(self, test_data_paths, dest_dir):
89 """Copies |test_data_paths| list of files/directories to |dest_dir|. 94 """Copies |test_data_paths| list of files/directories to |dest_dir|.
90 95
91 Args: 96 Args:
92 test_data_paths: A list of files or directories relative to |dest_dir| 97 test_data_paths: A list of files or directories relative to |dest_dir|
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 # Wait for 2 seconds then restart. 206 # Wait for 2 seconds then restart.
202 time.sleep(2) 207 time.sleep(2)
203 if not server_ready: 208 if not server_ready:
204 logging.error(';'.join(error_msgs)) 209 logging.error(';'.join(error_msgs))
205 raise Exception('Can not start the test spawner server.') 210 raise Exception('Can not start the test spawner server.')
206 self._PushTestServerPortInfoToDevice() 211 self._PushTestServerPortInfoToDevice()
207 self._spawner_forwarder = self._CreateAndRunForwarder( 212 self._spawner_forwarder = self._CreateAndRunForwarder(
208 self.adb, 213 self.adb,
209 [(self.test_server_spawner_port, self.test_server_spawner_port)], 214 [(self.test_server_spawner_port, self.test_server_spawner_port)],
210 self.tool, '127.0.0.1', self.build_type) 215 self.tool, '127.0.0.1', self.build_type)
OLDNEW
« no previous file with comments | « no previous file | build/android/pylib/gtest/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698