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

Unified Diff: build/android/pylib/instrumentation/test_package.py

Issue 336373004: Install support APK together with test APK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/instrumentation/test_package.py
diff --git a/build/android/pylib/instrumentation/test_package.py b/build/android/pylib/instrumentation/test_package.py
index 52e2e0995f9a581cd4f3ea959bddc36c4146be7c..4d6ba27ac532b37306bf4a09d34ea8f70a95c671 100644
--- a/build/android/pylib/instrumentation/test_package.py
+++ b/build/android/pylib/instrumentation/test_package.py
@@ -19,6 +19,9 @@ class TestPackage(test_jar.TestJar):
self._apk_path = apk_path
self._apk_name = os.path.splitext(os.path.basename(apk_path))[0]
self._package_name = apk_helper.GetPackageName(self._apk_path)
+ self._support_apk_name = "%sSupport%s" % (
jbudorick 2014/06/17 20:17:08 I don't think hardcoding this is a good idea. Can
aberent 2014/06/17 20:39:42 We could add it as an extra instrumentation option
+ os.path.splitext(self._apk_path)[0],
+ os.path.splitext(self._apk_path)[1])
def GetApkPath(self):
"""Returns the absolute path to the APK."""
@@ -35,4 +38,6 @@ class TestPackage(test_jar.TestJar):
# Override.
def Install(self, device):
device.Install(self.GetApkPath())
+ if os.path.exists(self._support_apk_name):
+ device.Install(self._support_apk_name)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698