Commit 1e978ec0 authored by machenbach's avatar machenbach Committed by Commit bot

[gn] Let gyp/gn comparison be more verbose on error

The step fails on windows. This'll help investigating why.

BUG=chromium:474921
TBR=tandrii@chromium.org, vogelheim@chromium.org, jochen@chromium.org
NOTRY=true

Review-Url: https://codereview.chromium.org/2141903002
Cr-Commit-Position: refs/heads/master@{#37675}
parent 570e8840
......@@ -187,7 +187,14 @@ def CompareLists(gyp, gn, name, dont_care_gyp=None, dont_care_gn=None):
def Run(command_line):
"""Run |command_line| as a subprocess and return stdout. Raises on error."""
try:
return subprocess.check_output(command_line, shell=True)
except subprocess.CalledProcessError as e:
# Rescue the output we got until the exception happened.
print '#### Stdout: ####################################################'
print e.output
print '#################################################################'
raise
def main():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment