Make iOS API Framework script use the src/ dir as cwd for commands.

The recent infra CL https://chromium-review.googlesource.com/c/439266/
seems to have broken our bot. It's better the script
doesn't have any assumptions on cwd when executing.

BUG=None
R=mbonadei@webrtc.org
TBR=mbonadei@webrtc.org

Review-Url: https://codereview.webrtc.org/2695303002 .
Cr-Commit-Position: refs/heads/master@{#16632}
This commit is contained in:
Henrik Kjellander
2017-02-15 20:51:26 +01:00
parent 43be94725f
commit 368b5ffecc

View File

@ -26,8 +26,8 @@ import sys
os.environ['PATH'] = '/usr/libexec' + os.pathsep + os.environ['PATH']
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
WEBRTC_BASE_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, '..', '..'))
SDK_OUTPUT_DIR = os.path.join(WEBRTC_BASE_DIR, 'out_ios_libs')
WEBRTC_SRC_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, '..', '..'))
SDK_OUTPUT_DIR = os.path.join(WEBRTC_SRC_DIR, 'out_ios_libs')
SDK_LIB_NAME = 'librtc_sdk_objc.a'
SDK_FRAMEWORK_NAME = 'WebRTC.framework'
@ -70,7 +70,7 @@ def _ParseArgs():
def _RunCommand(cmd):
logging.debug('Running: %r', cmd)
subprocess.check_call(cmd)
subprocess.check_call(cmd, cwd=WEBRTC_SRC_DIR)
def _CleanArtifacts(output_dir):