aboutsummaryrefslogtreecommitdiffhomepage
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-08-10 07:30:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-10 07:30:58 -0700
commitd434b01c7e589b721c7969d7dfc6a25f99bdc23b (patch)
treecee68c61a6ec3df692112ff03d6777ecbacc6627 /PRESUBMIT.py
parent3d96cb8db71895ff1e34d537774f94a578fcec49 (diff)
Roll GN: gn format is --in-place by default
As usual, might as well roll, and this new behavior is a small convenience. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2231833002 Review-Url: https://codereview.chromium.org/2231833002
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 95fea4f8db..3fd8314f0b 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -196,10 +196,9 @@ def _CheckGNFormatted(input_api, output_api):
try:
subprocess.check_output(cmd)
except subprocess.CalledProcessError:
- fix = cmd[:]
- fix[2] = '--in-place'
+ fix = 'gn format ' + f.LocalPath()
results.append(output_api.PresubmitError(
- '`%s` failed, try\n\t%s' % (' '.join(cmd), ' '.join(fix))))
+ '`%s` failed, try\n\t%s' % (' '.join(cmd), fix)))
return results