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

Side by Side Diff: PRESUBMIT.py

Issue 2061263003: add basic bootstrap for coverage (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Fix recipes readme. Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « .gitignore ('k') | bootstrap/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2015 The LUCI Authors. All rights reserved. 2 # Copyright 2015 The LUCI Authors. All rights reserved.
3 # Use of this source code is governed under the Apache License, Version 2.0 3 # Use of this source code is governed under the Apache License, Version 2.0
4 # that can be found in the LICENSE file. 4 # that can be found in the LICENSE file.
5 5
6 import os 6 import os
7 import re 7 import re
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 10
(...skipping 19 matching lines...) Expand all
30 def tests(*path): 30 def tests(*path):
31 return input_api.canned_checks.GetUnitTestsInDirectory( 31 return input_api.canned_checks.GetUnitTestsInDirectory(
32 input_api, 32 input_api,
33 output_api, 33 output_api,
34 input_api.os_path.join(*path), 34 input_api.os_path.join(*path),
35 whitelist=[r'.+_test\.py']) 35 whitelist=[r'.+_test\.py'])
36 36
37 results = [] 37 results = []
38 38
39 results.extend(input_api.canned_checks.PanProjectChecks( 39 results.extend(input_api.canned_checks.PanProjectChecks(
40 input_api, output_api, license_header=header(input_api))) 40 input_api, output_api, license_header=header(input_api),
41 excluded_paths=['bootstrap/virtualenv/*']
42 ))
41 43
42 results.extend(input_api.RunTests( 44 results.extend(input_api.RunTests(
43 tests('recipe_engine', 'unittests') + 45 tests('recipe_engine', 'unittests') +
44 tests('unittests'))) 46 tests('unittests')))
45 47
46 return results 48 return results
47 49
48 50
49 CheckChangeOnUpload = CommonChecks 51 CheckChangeOnUpload = CommonChecks
50 CheckChangeOnCommit = CommonChecks 52 CheckChangeOnCommit = CommonChecks
OLDNEW
« no previous file with comments | « .gitignore ('k') | bootstrap/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698