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

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

Issue 167643002: android: Don't require aapt to be on the path during builds and tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rietfail Created 6 years, 10 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/instrumentation/test_package.py
diff --git a/build/android/pylib/instrumentation/test_package.py b/build/android/pylib/instrumentation/test_package.py
index 79b2fc9737f6346fc9f9bf94a924946d8a93d044..b9309548548bb29c559aec58be47e1c4e79f1f20 100644
--- a/build/android/pylib/instrumentation/test_package.py
+++ b/build/android/pylib/instrumentation/test_package.py
@@ -6,6 +6,7 @@
import os
+from pylib import constants
from pylib.instrumentation import test_jar
from pylib.utils import apk_helper
@@ -18,7 +19,8 @@ class TestPackage(test_jar.TestJar):
raise Exception('%s not found, please build it' % apk_path)
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._package_name = apk_helper.GetPackageName(constants.ANDROID_SDK_TOOLS,
+ self._apk_path)
def GetApkPath(self):
"""Returns the absolute path to the APK."""

Powered by Google App Engine
This is Rietveld 408576698