Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Issue 2947393002: compile_ib_files.py: Wait for subprocess.Popen() to finish. (Closed)

Created:
3 years, 6 months ago by themblsha2
Modified:
3 years, 6 months ago
Reviewers:
Robert Sesek, sdefresne
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

compile_ib_files.py: Handle non-zero ibtool return code. Without check_output() the Popen() will always return None as returncode, this prevents error handling during the build process. With check_output() it will raise an exception in case of non-zero return code. BUG=None Review-Url: https://codereview.chromium.org/2947393002 Cr-Commit-Position: refs/heads/master@{#481948} Committed: https://chromium.googlesource.com/chromium/src/+/edda34d840b837f1bd20d9398845d1bc38140461

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use check_output instead of wait. #

Patch Set 3 : Removed brackets on every print usage for consistency. #

Total comments: 1

Patch Set 4 : Update print to Python3-compatible syntax. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -5 lines) Patch
M build/config/mac/compile_ib_files.py View 1 2 3 1 chunk +9 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
themblsha2
Similar change needs to be done to at least tools/gyp/pylib/gyp/mac_tool.py. I plan on updating that ...
3 years, 6 months ago (2017-06-22 11:42:14 UTC) #3
Robert Sesek
https://codereview.chromium.org/2947393002/diff/1/build/config/mac/compile_ib_files.py File build/config/mac/compile_ib_files.py (right): https://codereview.chromium.org/2947393002/diff/1/build/config/mac/compile_ib_files.py#newcode43 build/config/mac/compile_ib_files.py:43: ibtoolout = subprocess.Popen(ibtool_args, stdout=subprocess.PIPE) Any reason to not use ...
3 years, 6 months ago (2017-06-22 15:13:04 UTC) #4
themblsha2
On 2017/06/22 15:13:04, Robert Sesek wrote: > Any reason to not use subprocess.check_output? Your original ...
3 years, 6 months ago (2017-06-23 13:32:43 UTC) #6
Robert Sesek
LGTM On 2017/06/23 13:32:43, themblsha2 wrote: > On 2017/06/22 15:13:04, Robert Sesek wrote: > > ...
3 years, 6 months ago (2017-06-23 15:24:33 UTC) #7
sdefresne
lgtm https://codereview.chromium.org/2947393002/diff/40001/build/config/mac/compile_ib_files.py File build/config/mac/compile_ib_files.py (right): https://codereview.chromium.org/2947393002/diff/40001/build/config/mac/compile_ib_files.py#newcode54 build/config/mac/compile_ib_files.py:54: print current_section_header nit: can you either use "print(ccurent_section_header)" ...
3 years, 6 months ago (2017-06-23 16:48:58 UTC) #8
themblsha2
On 2017/06/23 16:48:58, sdefresne wrote: > nit: can you either use "print(ccurent_section_header)" or > "sys.stdout.write(current_section_header ...
3 years, 6 months ago (2017-06-23 17:21:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2947393002/60001
3 years, 6 months ago (2017-06-23 17:22:08 UTC) #12
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 17:42:53 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/edda34d840b837f1bd20d9398845...

Powered by Google App Engine
This is Rietveld 408576698