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

Unified Diff: build/android/test_package.py

Issue 10658003: Push pak files for APK tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/single_test_runner.py ('k') | build/android/test_package_executable.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_package.py
diff --git a/build/android/test_package.py b/build/android/test_package.py
index 2d07de496e73bc880caec46ceb56434af244cd44..92c3da1f82b8f37e51908f8f8f49531305a1b33f 100644
--- a/build/android/test_package.py
+++ b/build/android/test_package.py
@@ -38,7 +38,8 @@ class TestPackage(object):
self.test_suite_full = test_suite
self.test_suite = os.path.splitext(test_suite)[0]
self.test_suite_basename = self._GetTestSuiteBaseName()
- self.test_suite_dirname = os.path.dirname(self.test_suite)
+ self.test_suite_dirname = os.path.dirname(
+ self.test_suite.split(self.test_suite_basename)[0]);
self.rebaseline = rebaseline
self.performance_test = performance_test
self.cleanup_test_files = cleanup_test_files
@@ -122,6 +123,13 @@ class TestPackage(object):
ret += [current + test_name]
return ret
+ def PushDataAndPakFiles(self):
+ if self.test_suite_basename == 'ui_unittests':
+ self.adb.PushIfNeeded(self.test_suite_dirname + '/chrome.pak',
+ '/data/local/tmp/paks/chrome.pak')
+ self.adb.PushIfNeeded(self.test_suite_dirname + '/locales/en-US.pak',
+ '/data/local/tmp/paks/en-US.pak')
+
def _WatchTestOutput(self, p):
"""Watches the test output.
Args:
« no previous file with comments | « build/android/single_test_runner.py ('k') | build/android/test_package_executable.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698