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

Issue 1148653011: msvs: Make sure stdout/stderr from rule commands get logged (Closed)

Created:
5 years, 7 months ago by Shezan Baig (Bloomberg)
Modified:
5 years, 6 months ago
Reviewers:
bradnelson, scottmg
CC:
gyp-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Target Ref:
refs/heads/master
Project:
gyp
Visibility:
Public.

Description

msvs: Make sure stdout/stderr from rule commands get logged By default, stdout and stderr from rule scripts are not printed in the msvs console unless the user changes their MSBuild verbosity to "Detailed". However, the "Detailed" setting prints way too much information, making it hard to find the actual script output. This commit makes it so that anything printed to stdout and stderr from rules will be printed in the msvs console. The EchoOff setting is used to prevent the actual command from also being printed. BUG= R=scottmg@chromium.org Committed: https://chromium.googlesource.com/external/gyp/+/aa537916dcb59ffd6c4ecabf77a119837a409649

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add space before >> #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -5 lines) Patch
M pylib/gyp/generator/msvs.py View 1 chunk +3 lines, -0 lines 0 comments Download
A test/msvs/rules_stdout_stderr/dummy.bar View 1 chunk +5 lines, -0 lines 0 comments Download
A test/msvs/rules_stdout_stderr/dummy.foo View 1 chunk +5 lines, -0 lines 0 comments Download
A test/msvs/rules_stdout_stderr/gyptest-rules-stdout-stderr.py View 1 chunk +29 lines, -0 lines 0 comments Download
A + test/msvs/rules_stdout_stderr/rule_stderr.py View 1 1 chunk +3 lines, -2 lines 0 comments Download
A + test/msvs/rules_stdout_stderr/rule_stdout.py View 1 chunk +3 lines, -3 lines 0 comments Download
A test/msvs/rules_stdout_stderr/rules-stdout-stderr.gyp View 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Shezan Baig (Bloomberg)
This makes msvs behave more like ninja w.r.t logging output from scripts
5 years, 7 months ago (2015-05-28 09:33:26 UTC) #2
Shezan Baig (Bloomberg)
Hmm, "git try" doesn't seem to launch the try jobs. Is there a new command? ...
5 years, 7 months ago (2015-05-28 10:13:47 UTC) #3
scottmg
lgtm https://codereview.chromium.org/1148653011/diff/1/test/msvs/rules_stdout_stderr/rule_stderr.py File test/msvs/rules_stdout_stderr/rule_stderr.py (right): https://codereview.chromium.org/1148653011/diff/1/test/msvs/rules_stdout_stderr/rule_stderr.py#newcode7 test/msvs/rules_stdout_stderr/rule_stderr.py:7: print>>sys.stderr, "This will go to stderr" nit; space ...
5 years, 6 months ago (2015-05-28 15:18:51 UTC) #4
scottmg
On 2015/05/28 10:13:47, Shezan Baig (Bloomberg) wrote: > Hmm, "git try" doesn't seem to launch ...
5 years, 6 months ago (2015-05-28 15:19:56 UTC) #6
Dirk Pranke
On 2015/05/28 15:19:56, scottmg wrote: > On 2015/05/28 10:13:47, Shezan Baig (Bloomberg) wrote: > > ...
5 years, 6 months ago (2015-05-28 16:52:50 UTC) #7
Shezan Baig (Bloomberg)
I'm getting the following error when I do "git cl land": Writing objects: 100% (15/15), ...
5 years, 6 months ago (2015-05-29 10:10:28 UTC) #8
scottmg
On 2015/05/29 10:10:28, Shezan Baig (Bloomberg) wrote: > I'm getting the following error when I ...
5 years, 6 months ago (2015-05-29 16:00:31 UTC) #11
Shezan Baig (Bloomberg)
On 2015/05/29 16:00:31, scottmg wrote: > On 2015/05/29 10:10:28, Shezan Baig (Bloomberg) wrote: > > ...
5 years, 6 months ago (2015-05-31 10:16:02 UTC) #12
Shezan Baig (Bloomberg)
5 years, 6 months ago (2015-06-03 23:19:48 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
aa537916dcb59ffd6c4ecabf77a119837a409649 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698