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

Side by Side Diff: PRESUBMIT.py

Issue 1344583003: Recipe package system. (Closed) Base URL: git@github.com:luci/recipes-py.git@master
Patch Set: Recompiled proto Created 5 years, 3 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') | infra/config/recipes.cfg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 import os
4 import re
5 import subprocess
6 import sys
7
8 def CommonChecks(input_api, output_api):
9 def tests(*path):
10 return input_api.canned_checks.GetUnitTestsInDirectory(
11 input_api,
12 output_api,
13 input_api.os_path.join(*path),
14 whitelist=[r'.+_test\.py'])
15 return input_api.RunTests(
16 tests('recipe_engine', 'unittests') +
17 tests('unittests'))
18
19 CheckChangeOnUpload = CommonChecks
20 CheckChangeOnCommit = CommonChecks
OLDNEW
« no previous file with comments | « .gitignore ('k') | infra/config/recipes.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698