Commit 2b464952 authored by Artem Titarenko's avatar Artem Titarenko Committed by Commit Bot

Fix extracting of app_path for iOS coverage

For XCTests there will be more than 2 arguments, therefore
we need to take second argument, not the last one.

Change-Id: Ie3bcac032d49e5e75812dcf7bd248e550c73a244
Reviewed-on: https://chromium-review.googlesource.com/c/1317856Reviewed-by: default avatarYuke Liao <liaoyuke@chromium.org>
Commit-Queue: Artem Titarenko <artit@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606075}
parent 76b65754
......@@ -661,7 +661,7 @@ def _GetBinaryPath(command):
if _IsIOSCommand(command):
# For a given application bundle, the binary resides in the bundle and has
# the same name with the application without the .app extension.
app_path = command_parts[-1].rstrip(os.path.sep)
app_path = command_parts[1].rstrip(os.path.sep)
app_name = os.path.splitext(os.path.basename(app_path))[0]
return os.path.join(app_path, app_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment