From 1e18c15affda4732439a48af2da6a197cab72fc8 Mon Sep 17 00:00:00 2001 From: "frankf@google.com" Date: Fri, 21 Dec 2012 01:43:22 +0000 Subject: [Android] Fix the bug when full path to test apk is provided. BUG= Review URL: https://codereview.chromium.org/11642049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174315 0039d316-1c4b-4281-b951-d872f2087c98 --- build/android/pylib/test_options_parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'build/android/pylib/test_options_parser.py') diff --git a/build/android/pylib/test_options_parser.py b/build/android/pylib/test_options_parser.py index 65399aa..9338264 100644 --- a/build/android/pylib/test_options_parser.py +++ b/build/android/pylib/test_options_parser.py @@ -167,7 +167,8 @@ def ValidateInstrumentationOptions(option_parser, options, args): if os.path.exists(options.test_apk): # The APK is fully qualified, assume the JAR lives along side. options.test_apk_path = options.test_apk - options.test_apk_jar_path = os.path.splitext(options.test_apk_path) + '.jar' + options.test_apk_jar_path = (os.path.splitext(options.test_apk_path)[0] + + '.jar') else: options.test_apk_path = os.path.join(_SDK_OUT_DIR, options.build_type, -- cgit v1.1