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

Unified Diff: tools/perf/PRESUBMIT.py

Issue 21684002: [telemetry] Automatic hash file creation and upload to Cloud Storage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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 | tools/perf/page_sets/.gitignore » ('j') | tools/perf/page_sets/.gitignore » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/PRESUBMIT.py
diff --git a/tools/perf/PRESUBMIT.py b/tools/perf/PRESUBMIT.py
index e2a028e6d6e4f19c55ed9c95f32d81233cbcfe10..9bb8eb1a68d2cc19372c7ed20b85a9246416c067 100644
--- a/tools/perf/PRESUBMIT.py
+++ b/tools/perf/PRESUBMIT.py
@@ -4,14 +4,16 @@
import os
import sys
+
PYLINT_BLACKLIST = []
PYLINT_DISABLED_WARNINGS = ['R0923', 'R0201', 'E1101']
+
def _CommonChecks(input_api, output_api):
results = []
old_sys_path = sys.path
try:
- sys.path = [os.path.join('..', 'telemetry')] + sys.path
+ sys.path = [os.path.join(os.pardir, 'telemetry')] + sys.path
results.extend(input_api.canned_checks.RunPylint(
input_api, output_api,
black_list=PYLINT_BLACKLIST,
@@ -20,11 +22,13 @@ def _CommonChecks(input_api, output_api):
sys.path = old_sys_path
return results
+
def CheckChangeOnUpload(input_api, output_api):
report = []
report.extend(_CommonChecks(input_api, output_api))
return report
+
def CheckChangeOnCommit(input_api, output_api):
report = []
report.extend(_CommonChecks(input_api, output_api))
« no previous file with comments | « no previous file | tools/perf/page_sets/.gitignore » ('j') | tools/perf/page_sets/.gitignore » ('J')

Powered by Google App Engine
This is Rietveld 408576698