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

Issue 10288005: compiler_version: suppress stdout unless command fails (Closed)

Created:
8 years, 7 months ago by cwolfe
Modified:
8 years, 7 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

compiler_version: suppress stderr unless command fails gyp considers a shell variable substitution to have failed if it generates any output to stderr, even if the exit status was zero. This causes problems when gomacc automatically starts its proxy, which helpfully reports "GOMA: Starting compiler proxy" to stderr. Fixed by dropping stderr unless the underlying process returns a non-zero exit status. BUG=chromium-os:28670 TEST=Ran hooks normally and inside CrOS chroot, with and without $CXX pointing to goma. A $CXX which writes to stderr and then exits with failure still prints its output before the exception. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135663

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M build/compiler_version.py View 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
cwolfe
maruel: Hope you don't mind being drafted for a quick review; this file doesn't seem ...
8 years, 7 months ago (2012-05-01 22:38:23 UTC) #1
M-A Ruel
lgtm
8 years, 7 months ago (2012-05-07 15:31:34 UTC) #2
cwolfe
On 2012/05/07 15:31:34, Marc-Antoine Ruel wrote: > lgtm Thanks! Suspect it'll need a rebase, but ...
8 years, 7 months ago (2012-05-07 15:44:21 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cwolfe@chromium.org/10288005/1
8 years, 7 months ago (2012-05-07 15:44:27 UTC) #4
commit-bot: I haz the power
8 years, 7 months ago (2012-05-07 17:24:54 UTC) #5
Change committed as 135663

Powered by Google App Engine
This is Rietveld 408576698