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 c0b87ee70fc778176828078cf2d2a310e7b1e991..db8c042cc7ca0aa5360c390aa1c203d53dd5e1f1 100644 |
--- a/build/android/pylib/instrumentation/test_package.py |
+++ b/build/android/pylib/instrumentation/test_package.py |
@@ -18,13 +18,14 @@ class TestPackage(test_jar.TestJar): |
if not os.path.exists(apk_path): |
raise Exception('%s not found, please build it' % apk_path) |
self._apk_path = apk_path |
+ self._package_name = apk_helper.GetPackageName(self._apk_path) |
def GetApkPath(self): |
return self._apk_path |
def GetPackageName(self): |
"""Returns the package name of this APK.""" |
- return apk_helper.GetPackageName(self._apk_path) |
+ return self._package_name |
# Override. |
def Install(self, adb): |