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

Issue 11228050: Redirect stderr to sys.stdout for build output. (Closed)

Created:
8 years, 2 months ago by ricow1
Modified:
8 years, 1 month ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Redirect stderr to sys.stdout for build output. The stderr is currently not being displayed on the buildbot. Committed: https://code.google.com/p/dart/source/detail?r=13932

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M tools/build.py View 1 chunk +3 lines, -1 line 6 comments Download

Messages

Total messages: 9 (0 generated)
ricow1
8 years, 2 months ago (2012-10-23 08:27:18 UTC) #1
Mads Ager (google)
lgtm
8 years, 2 months ago (2012-10-23 08:33:04 UTC) #2
Mads Ager (google)
https://codereview.chromium.org/11228050/diff/1/tools/build.py File tools/build.py (right): https://codereview.chromium.org/11228050/diff/1/tools/build.py#newcode321 tools/build.py:321: process = subprocess.Popen(args, stderr=sys.stdout) Should this just be stderr=STDOUT?
8 years, 2 months ago (2012-10-23 08:34:15 UTC) #3
ahe
LGTM! https://codereview.chromium.org/11228050/diff/1/tools/build.py File tools/build.py (right): https://codereview.chromium.org/11228050/diff/1/tools/build.py#newcode321 tools/build.py:321: process = subprocess.Popen(args, stderr=sys.stdout) On 2012/10/23 08:34:15, Mads ...
8 years, 2 months ago (2012-10-23 08:36:51 UTC) #4
Ivan Posva
Thanks! LGTM -Ivan
8 years, 2 months ago (2012-10-23 16:06:06 UTC) #5
Emily Fortuna
https://codereview.chromium.org/11228050/diff/1/tools/build.py File tools/build.py (right): https://codereview.chromium.org/11228050/diff/1/tools/build.py#newcode321 tools/build.py:321: process = subprocess.Popen(args, stderr=sys.stdout) On 2012/10/23 08:36:51, ahe wrote: ...
8 years, 2 months ago (2012-10-23 16:46:16 UTC) #6
ahe
https://codereview.chromium.org/11228050/diff/1/tools/build.py File tools/build.py (right): https://codereview.chromium.org/11228050/diff/1/tools/build.py#newcode321 tools/build.py:321: process = subprocess.Popen(args, stderr=sys.stdout) On 2012/10/23 16:46:17, Emily Fortuna ...
8 years, 1 month ago (2012-10-29 12:59:38 UTC) #7
Emily Fortuna
https://codereview.chromium.org/11228050/diff/1/tools/build.py File tools/build.py (right): https://codereview.chromium.org/11228050/diff/1/tools/build.py#newcode321 tools/build.py:321: process = subprocess.Popen(args, stderr=sys.stdout) On 2012/10/29 12:59:39, ahe wrote: ...
8 years, 1 month ago (2012-10-29 16:17:56 UTC) #8
ahe
8 years, 1 month ago (2012-11-05 09:58:11 UTC) #9
https://codereview.chromium.org/11228050/diff/1/tools/build.py
File tools/build.py (right):

https://codereview.chromium.org/11228050/diff/1/tools/build.py#newcode321
tools/build.py:321: process = subprocess.Popen(args, stderr=sys.stdout)
On 2012/10/29 16:17:56, Emily Fortuna wrote:
> On 2012/10/29 12:59:39, ahe wrote:
> > On 2012/10/23 16:46:17, Emily Fortuna wrote:
> > > On 2012/10/23 08:36:51, ahe wrote:
> > > > On 2012/10/23 08:34:15, Mads Ager wrote:
> > > > > Should this just be stderr=STDOUT?
> > > > 
> > > > That would be stderr=subprocess.STDOUT but that doesn't work.
> > > 
> > > Why does stderr=subprocess.STDOUT not work?
> > 
> > I don't know. We tried and it didn't work. However, it turned out that this
> > didn't work either.
> 
> alternatively:
> process = subprocess.Popen(args, stderr=subprocess.PIPE,
stdout=subprocess.PIPE)
> output, stderr = process.communicate()
> print output
> print stderr, as appropriate.

Unfortunately, that would be a severe regression compared to the current
behavior. We want to see output incrementally.
 
> OR are you trying to get this output on Windows? If so, you probably need
> shell=True/

Not that far yet. We were just trying to redirect stderr to stdout on Linux and
Mac.

Powered by Google App Engine
This is Rietveld 408576698