Add canned presubmit check for GN formatting

Requires https://codereview.chromium.org/779883002/ to be landed/rolled before it's useful.

R=dpranke@chromium.org
BUG=348474

Review URL: https://codereview.chromium.org/779513005

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@293269 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
scottmg@chromium.org
2014-12-05 17:24:26 +00:00
parent 34edb9bfa3
commit d05ab35296
3 changed files with 21 additions and 1 deletions

2
gn.py
View File

@@ -30,7 +30,7 @@ def main(args):
print >> sys.stderr, 'gn.py: Could not find gn executable at: %s' % gn_path
return 2
else:
return subprocess.call([gn_path] + sys.argv[1:])
return subprocess.call([gn_path] + args[1:])
if __name__ == '__main__':