| 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))
|
|
|