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

Issue 1415983005: Make win_as.py notice and report errors better (Closed)

Created:
5 years, 1 month ago by Roland McGrath
Modified:
5 years, 1 month ago
Reviewers:
bradnelson, scottmg
CC:
native-client-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
nacl
Visibility:
Public.

Description

Make win_as.py notice and report errors better The win_as.py script completely hides errors from running cl.exe (the C preprocessor) and while it displays errors from running the assembler, it hides the exit status of the assembler so the script returns success even if the commands it ran failed. Fix this by detecting the exit status from running cl.exe and displaying its stderr when there was an error, and by detecting the exit status from running the assembler, and having the script exit with failure if either command failed. BUG=512869 TEST= trybots R=bradnelson@chromium.org, scottmg@chromium.org Committed: https://chromium.googlesource.com/native_client/src/native_client/+/ba703459e79eb73b9a7a2bf9b1ca644106e20a9f

Patch Set 1 #

Total comments: 5

Patch Set 2 : use p.returncode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -35 lines) Patch
M tools/win_as.py View 1 2 chunks +48 lines, -35 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Roland McGrath
5 years, 1 month ago (2015-11-04 22:56:42 UTC) #1
bradnelson
lgtm
5 years, 1 month ago (2015-11-04 22:57:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415983005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415983005/1
5 years, 1 month ago (2015-11-04 22:58:11 UTC) #4
scottmg
lgtm https://codereview.chromium.org/1415983005/diff/1/tools/win_as.py File tools/win_as.py (left): https://codereview.chromium.org/1415983005/diff/1/tools/win_as.py#oldcode91 tools/win_as.py:91: if p.wait() == 0: # success Although I ...
5 years, 1 month ago (2015-11-04 23:08:40 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: nacl-win64_newlib_opt on tryserver.nacl (JOB_FAILED, http://build.chromium.org/p/tryserver.nacl/builders/nacl-win64_newlib_opt/builds/11017)
5 years, 1 month ago (2015-11-04 23:10:41 UTC) #7
Roland McGrath
https://codereview.chromium.org/1415983005/diff/1/tools/win_as.py File tools/win_as.py (right): https://codereview.chromium.org/1415983005/diff/1/tools/win_as.py#newcode75 tools/win_as.py:75: cl_status = p.wait() On 2015/11/04 23:08:40, scottmg wrote: > ...
5 years, 1 month ago (2015-11-04 23:15:34 UTC) #8
Roland McGrath
5 years, 1 month ago (2015-11-04 23:18:29 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
ba703459e79eb73b9a7a2bf9b1ca644106e20a9f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698