Commit 39ca4928 authored by Mike Bjorge's avatar Mike Bjorge Committed by Commit Bot

Fix roll_gn.py script.

BuildResults is an object not a dict anymore. Need to use .property
instead of ['property'] to access values.

Change-Id: I90cae323d6dbe6f9489cf486a97294322b3f6022
Reviewed-on: https://chromium-review.googlesource.com/644099Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Mike Bjorge <mbjorge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#498712}
parent 1ae16d1f
......@@ -194,7 +194,7 @@ class GNRoller(object):
print('Checking build')
results = self.CheckBuild()
ret = 0 if all(r['state'] == 'success' for r in results.values()) else 1
ret = 0 if all(r.state == SUCCESS for r in results.values()) else 1
if ret:
print('Build failed.')
else:
......@@ -312,7 +312,7 @@ class GNRoller(object):
fname = 'gn.exe.sha1' if platform == 'win' else 'gn.sha1'
path = os.path.join(self.buildtools_dir, platform, fname)
with open(path, 'w') as fp:
fp.write('%s\n' % results[platform]['sha1'])
fp.write('%s\n' % results[platform].sha1)
desc_file = tempfile.NamedTemporaryFile(delete=False)
try:
......
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