Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Side by Side Diff: appengine/auth_service/PRESUBMIT.py

Issue 215360043: Standardize skip_files to test_.+; rename support to test_support. (Closed) Base URL: https://code.google.com/p/swarming@master
Patch Set: Created 9 years, 12 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Swarming Authors. All rights reserved. 1 # Copyright 2014 The Swarming Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed by the Apache v2.0 license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Top-level presubmit script for auth server. 5 """Top-level presubmit script for auth server.
6 6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
8 details on the presubmit API built into gcl. 8 details on the presubmit API built into gcl.
9 """ 9 """
10 10
11 11
12 def FindAppEngineSDK(input_api): 12 def FindAppEngineSDK(input_api):
13 """Returns an absolute path to AppEngine SDK (or None if not found).""" 13 """Returns an absolute path to AppEngine SDK (or None if not found)."""
14 import sys 14 import sys
15 old_sys_path = sys.path 15 old_sys_path = sys.path
16 try: 16 try:
17 # Add 'components' to sys.path to be able to import gae_sdk_utils. 17 # Add 'components' to sys.path to be able to import gae_sdk_utils.
18 components_dir = input_api.os_path.join( 18 components_dir = input_api.os_path.join(
19 input_api.PresubmitLocalPath(), '..', 'components') 19 input_api.PresubmitLocalPath(), '..', 'components')
20 sys.path = [components_dir] + sys.path 20 sys.path = [components_dir] + sys.path
21 # pylint: disable=F0401 21 # pylint: disable=F0401
22 from support import gae_sdk_utils 22 from test_support import gae_sdk_utils
vadimsh 2015/03/19 06:01:01 gae_sdk_utils is mostly unrelated to testing :( It
M-A 2015/03/19 14:50:10 Ok so I split "support" in two: - tool_support - t
23 return gae_sdk_utils.find_gae_sdk() 23 return gae_sdk_utils.find_gae_sdk()
24 finally: 24 finally:
25 sys.path = old_sys_path 25 sys.path = old_sys_path
26 26
27 27
28 def CommonChecks(input_api, output_api): 28 def CommonChecks(input_api, output_api):
29 output = [] 29 output = []
30 def join(*args): 30 def join(*args):
31 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) 31 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)
32 32
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 output.extend(input_api.RunTests(tests, parallel=True)) 69 output.extend(input_api.RunTests(tests, parallel=True))
70 return output 70 return output
71 71
72 72
73 def CheckChangeOnUpload(input_api, output_api): 73 def CheckChangeOnUpload(input_api, output_api):
74 return CommonChecks(input_api, output_api) 74 return CommonChecks(input_api, output_api)
75 75
76 76
77 def CheckChangeOnCommit(input_api, output_api): 77 def CheckChangeOnCommit(input_api, output_api):
78 return CommonChecks(input_api, output_api) 78 return CommonChecks(input_api, output_api)
OLDNEW
« no previous file with comments | « no previous file | appengine/auth_service/app.yaml » ('j') | appengine/auth_service/tests/frontend_handlers_test.py » ('J')

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b