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

Unified Diff: PRESUBMIT.py

Issue 2398263003: Added unittests for run_slave (Closed)
Patch Set: cosmetic fixes with more readable code Created 4 years, 2 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 | slave/tests/run_slave_test.py » ('j') | slave/tests/run_slave_test.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 944f10e7c5eaac2edf81c989794e2bb3e2cff004..1fcf5a17776e583d2cda37bdddfbd19579274ecf 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -126,6 +126,13 @@ def CommonChecks(input_api, output_api):
path,
whitelist))
+ tests.extend(input_api.canned_checks.GetUnitTestsInDirectory(
+ input_api,
+ output_api,
+ input_api.os_path.join(
+ 'slave', 'tests'),
dsansome 2016/10/12 03:54:04 I'd put this on the line above
ddoman1 2016/10/12 20:08:17 Done.
+ whitelist))
+
with pythonpath(infra_path + sys.path):
import common.master_cfg_utils # pylint: disable=F0401
# Fetch recipe dependencies once in serial so that we don't hit a race
« no previous file with comments | « no previous file | slave/tests/run_slave_test.py » ('j') | slave/tests/run_slave_test.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698