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

Side by Side Diff: build/android/pylib/single_test_runner.py

Issue 10702162: add sd card when creating avd and wait for it ready before pushing data into it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix coding style Created 8 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/android_commands.py ('k') | build/install-build-deps-android-sdk.sh » ('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 glob 5 import glob
6 import logging 6 import logging
7 import os 7 import os
8 import sys 8 import sys
9 9
10 from base_test_runner import BaseTestRunner 10 from base_test_runner import BaseTestRunner
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 def StripAndCopyFiles(self): 242 def StripAndCopyFiles(self):
243 """Strips and copies the required data files for the test suite.""" 243 """Strips and copies the required data files for the test suite."""
244 self.test_package.StripAndCopyExecutable() 244 self.test_package.StripAndCopyExecutable()
245 self.test_package.PushDataAndPakFiles() 245 self.test_package.PushDataAndPakFiles()
246 self.tool.CopyFiles() 246 self.tool.CopyFiles()
247 test_data = self.GetDataFilesForTestSuite() 247 test_data = self.GetDataFilesForTestSuite()
248 if test_data and not self.fast_and_loose: 248 if test_data and not self.fast_and_loose:
249 # Due to the large size of certain test data, we use sdcard to store the 249 # Due to the large size of certain test data, we use sdcard to store the
250 # test data and create symbolic links to map them to data/local/tmp/. 250 # test data and create symbolic links to map them to data/local/tmp/.
251 # Before that, make sure SD card is ready.
252 self.adb.WaitForSdCardReady(20)
251 for data in test_data: 253 for data in test_data:
252 self.CopyTestData([data], '/sdcard/') 254 self.CopyTestData([data], '/sdcard/')
253 self.LinkSdCardPathsToTempDir(test_data) 255 self.LinkSdCardPathsToTempDir(test_data)
254 256
255 def RunTestsWithFilter(self): 257 def RunTestsWithFilter(self):
256 """Runs a tests via a small, temporary shell script.""" 258 """Runs a tests via a small, temporary shell script."""
257 self.test_package.CreateTestRunnerScript(self._gtest_filter, 259 self.test_package.CreateTestRunnerScript(self._gtest_filter,
258 self._test_arguments) 260 self._test_arguments)
259 self.test_results = self.test_package.RunTestsAndListResults() 261 self.test_results = self.test_package.RunTestsAndListResults()
260 262
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 def TearDown(self): 327 def TearDown(self):
326 """Cleans up the test enviroment for the test suite.""" 328 """Cleans up the test enviroment for the test suite."""
327 self.tool.CleanUpEnvironment() 329 self.tool.CleanUpEnvironment()
328 if self.test_package.cleanup_test_files: 330 if self.test_package.cleanup_test_files:
329 self.adb.RemovePushedFiles() 331 self.adb.RemovePushedFiles()
330 if self.dump_debug_info: 332 if self.dump_debug_info:
331 self.dump_debug_info.StopRecordingLog() 333 self.dump_debug_info.StopRecordingLog()
332 if self.test_package.performance_test: 334 if self.test_package.performance_test:
333 self.adb.TearDownPerformanceTest() 335 self.adb.TearDownPerformanceTest()
334 super(SingleTestRunner, self).TearDown() 336 super(SingleTestRunner, self).TearDown()
OLDNEW
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | build/install-build-deps-android-sdk.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698