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 db8c042cc7ca0aa5360c390aa1c203d53dd5e1f1..34f9fe867ac468d408b5a760de9091d707339c2c 100644 |
--- a/build/android/pylib/instrumentation/test_package.py |
+++ b/build/android/pylib/instrumentation/test_package.py |
@@ -18,11 +18,17 @@ 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._apk_name = os.path.splitext(os.path.basename(apk_path))[0] |
self._package_name = apk_helper.GetPackageName(self._apk_path) |
def GetApkPath(self): |
+ """Returns the absolute path to the APK.""" |
return self._apk_path |
+ def GetApkName(self): |
+ """Returns the name of the apk without the suffix.""" |
+ return self._apk_name |
+ |
def GetPackageName(self): |
"""Returns the package name of this APK.""" |
return self._package_name |