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

Issue 818623002: Make running gn format unittests from anywhere work (Closed)

Created:
6 years ago by scottmg
Modified:
6 years ago
Reviewers:
Dirk Pranke
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make running gn format unittests from anywhere work This "works" but has two drawbacks: - Relies on a 2-deep output directory which is true for gyp, but not necessarily for gn (though I'm pretty sure other things are broken for that case too). - calls SetCurrentDirectory which is kind of icky. At first I tried setting an absolute path for loading the .golden file which was OK, but then it got messy to create the //gn path. R=dpranke@chromium.org BUG=443813 Committed: https://crrev.com/7f1ee75851d2a0f19ce8fe993cd7e9e1ccfebf4e Cr-Commit-Position: refs/heads/master@{#309277}

Patch Set 1 #

Total comments: 3

Patch Set 2 : dir_source_root #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -16 lines) Patch
M tools/gn/command_format_unittest.cc View 1 2 chunks +18 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
scottmg
Better suggestions?
6 years ago (2014-12-19 04:03:02 UTC) #2
Dirk Pranke
https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc File tools/gn/command_format_unittest.cc (right): https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc#newcode25 tools/gn/command_format_unittest.cc:25: PathService::Get(base::FILE_EXE, &exe); \ Can you use PathService::Get(base::DIR_SOURCE_ROOT) here instead? ...
6 years ago (2014-12-19 18:24:39 UTC) #3
tfarina
https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc File tools/gn/command_format_unittest.cc (right): https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc#newcode25 tools/gn/command_format_unittest.cc:25: PathService::Get(base::FILE_EXE, &exe); \ On 2014/12/19 18:24:39, Dirk Pranke wrote: ...
6 years ago (2014-12-19 18:29:04 UTC) #4
scottmg
https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc File tools/gn/command_format_unittest.cc (right): https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc#newcode25 tools/gn/command_format_unittest.cc:25: PathService::Get(base::FILE_EXE, &exe); \ On 2014/12/19 18:24:39, Dirk Pranke wrote: ...
6 years ago (2014-12-19 18:31:45 UTC) #5
Dirk Pranke
On 2014/12/19 18:31:45, scottmg wrote: > https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc > File tools/gn/command_format_unittest.cc (right): > > https://codereview.chromium.org/818623002/diff/1/tools/gn/command_format_unittest.cc#newcode25 > ...
6 years ago (2014-12-19 20:23:18 UTC) #6
scottmg
On 2014/12/19 20:23:18, Dirk Pranke wrote: > On 2014/12/19 18:31:45, scottmg wrote: > > > ...
6 years ago (2014-12-19 21:26:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/818623002/20001
6 years ago (2014-12-19 21:27:17 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-19 22:11:44 UTC) #10
commit-bot: I haz the power
6 years ago (2014-12-19 22:12:47 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7f1ee75851d2a0f19ce8fe993cd7e9e1ccfebf4e
Cr-Commit-Position: refs/heads/master@{#309277}

Powered by Google App Engine
This is Rietveld 408576698