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

Issue 2802853003: Fix assert in grit script by always resolving template vars. (Closed)

Created:
3 years, 8 months ago by slan
Modified:
3 years, 8 months ago
Reviewers:
Nico, yilongyao1
CC:
chromium-reviews, yilongyao
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix assert in grit script by always resolving template vars. OutputNode.GetFilename() does not resolve environment vars, meaning that when vars are used, the filename used in python does not match the files created by the script. Use GetOutputFilename() everywhere, which properly resolves variables in file names. BUG= Test: Build grit target with template vars in the output file name. Review-Url: https://codereview.chromium.org/2802853003 Cr-Commit-Position: refs/heads/master@{#464616} Committed: https://chromium.googlesource.com/chromium/src/+/6fcd1789ae575456137efd8e707003492d443751

Patch Set 1 #

Patch Set 2 : Test addded #

Patch Set 3 : style nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
A tools/grit/grit/testdata/substitute_tmpl.grd View 1 1 chunk +31 lines, -0 lines 0 comments Download
M tools/grit/grit/tool/build.py View 4 chunks +5 lines, -4 lines 0 comments Download
M tools/grit/grit/tool/build_unittest.py View 1 2 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
slan
Hey Nico, We found what appears to be a bug in the AssertOutput step of ...
3 years, 8 months ago (2017-04-05 23:54:00 UTC) #2
slan
3 years, 8 months ago (2017-04-05 23:59:15 UTC) #3
Nico
Is it possible to write a test for this?
3 years, 8 months ago (2017-04-06 14:10:00 UTC) #4
slan
Done. Full disclosure, this patch was written by yilongyao@. Thanks Yilong!
3 years, 8 months ago (2017-04-06 21:32:00 UTC) #5
yilongyao1
On 2017/04/06 21:32:00, slan wrote: > Done. Full disclosure, this patch was written by yilongyao@. ...
3 years, 8 months ago (2017-04-11 17:34:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802853003/40001
3 years, 8 months ago (2017-04-11 18:01:42 UTC) #16
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-11 18:01:43 UTC) #18
Nico
lgtm
3 years, 8 months ago (2017-04-13 15:58:49 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2802853003/40001
3 years, 8 months ago (2017-04-13 23:50:32 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 00:06:33 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/6fcd1789ae575456137efd8e7070...

Powered by Google App Engine
This is Rietveld 408576698