Index: tools/metrics/rappor/PRESUBMIT.py |
diff --git a/tools/metrics/actions/PRESUBMIT.py b/tools/metrics/rappor/PRESUBMIT.py |
similarity index 61% |
copy from tools/metrics/actions/PRESUBMIT.py |
copy to tools/metrics/rappor/PRESUBMIT.py |
index c5d1e8e721e0c9ac41ddfe4554465abadda73616..c70f50fe7a6943718ec19e6ffcffb0bda2e27539 100644 |
--- a/tools/metrics/actions/PRESUBMIT.py |
+++ b/tools/metrics/rappor/PRESUBMIT.py |
@@ -1,27 +1,27 @@ |
-# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Copyright 2015 The Chromium Authors. All rights reserved. |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-"""Presubmit script for actions.xml. |
+"""Presubmit script for rappor.xml. |
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
-for more details on the presubmit API built into depot_tools. |
+for more details on the presubmit API built into gcl. |
""" |
def CheckChange(input_api, output_api): |
- """Checks that actions.xml is up to date and pretty-printed.""" |
+ """Checks that rappor.xml is pretty-printed and well-formatted.""" |
for f in input_api.AffectedTextFiles(): |
p = f.AbsoluteLocalPath() |
- if (input_api.basename(p) == 'actions.xml' |
+ if (input_api.basename(p) == 'rappor.xml' |
and input_api.os_path.dirname(p) == input_api.PresubmitLocalPath()): |
cwd = input_api.os_path.dirname(p) |
exit_code = input_api.subprocess.call( |
- ['python', 'extract_actions.py', '--presubmit'], cwd=cwd) |
+ ['python', 'pretty_print.py', '--presubmit'], cwd=cwd) |
if exit_code != 0: |
return [output_api.PresubmitError( |
- 'actions.xml is not up to date or is not formatted correctly; ' |
- 'run extract_actions.py to fix')] |
+ 'rappor.xml is not formatted correctly; run pretty_print.py ' |
+ 'to fix')] |
return [] |