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

Unified Diff: build/android/pylib/gtest/test_package_apk.py

Issue 19799003: [android] Instumentation tests determine whether to install test apk based on Md5Sum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: automatically install package to be tested 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 side-by-side diff with in-line comments
Download patch
Index: build/android/pylib/gtest/test_package_apk.py
diff --git a/build/android/pylib/gtest/test_package_apk.py b/build/android/pylib/gtest/test_package_apk.py
index 9670934d879e74c4a00577ac9bef80c03f24cb8c..ecd55eb08b63ea582585ef9318b5f92ef4c8e801 100644
--- a/build/android/pylib/gtest/test_package_apk.py
+++ b/build/android/pylib/gtest/test_package_apk.py
@@ -82,15 +82,6 @@ class TestPackageApk(TestPackage):
action='android.intent.action.MAIN',
force_stop=True)
- def _NeedsInstall(self):
- installed_apk_path = self.adb.GetApplicationPath(
- self._test_apk_package_name)
- if installed_apk_path:
- return not self.adb.CheckMd5Sum(
- self.test_suite_full, installed_apk_path, ignore_paths=True)
- else:
- return True
-
def _GetTestSuiteBaseName(self):
"""Returns the base name of the test suite."""
# APK test suite names end with '-debug.apk'
@@ -137,9 +128,6 @@ class TestPackageApk(TestPackage):
#override
def Install(self):
self.tool.CopyFiles()
- if self._NeedsInstall():
- # Always uninstall the previous one (by activity name); we don't
- # know what was embedded in it.
- self.adb.ManagedInstall(self.test_suite_full, False,
- package_name=self._test_apk_package_name)
+ self.adb.ManagedInstall(self.test_suite_full, False,
+ package_name=self._test_apk_package_name)

Powered by Google App Engine
This is Rietveld 408576698