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 f32556f33d00c5fc799a7b28d98adb9a5de31df4..5be061d4af8fb1b3aa9814eed409a4385ca01071 100644 |
--- a/build/android/pylib/instrumentation/test_package.py |
+++ b/build/android/pylib/instrumentation/test_package.py |
@@ -16,6 +16,8 @@ class TestPackage(test_jar.TestJar): |
if not os.path.exists(apk_path): |
raise Exception('%s not found, please build it' % apk_path) |
+ if test_support_apk_path and not os.path.exists(test_support_apk_path): |
+ raise Exception('%s not found, please build it' % test_support_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) |