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

Unified Diff: gn.py

Issue 779513005: Add canned presubmit check for GN formatting (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | presubmit_canned_checks.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gn.py
diff --git a/gn.py b/gn.py
index 325e685d776035651a8b6c4c6a5d9dd0ee233883..7837dbddcce75fa14a49a17cc8c9a28da40baa3a 100755
--- a/gn.py
+++ b/gn.py
@@ -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__':
« no previous file with comments | « no previous file | presubmit_canned_checks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698