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

Unified Diff: scripts/slave/recipes/chromium.py

Issue 1241323004: Cross-repo recipe package system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Roll to latest recipes-py 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipes/blink_trybot.py ('k') | scripts/slave/recipes/chromium_codesearch.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipes/chromium.py
diff --git a/scripts/slave/recipes/chromium.py b/scripts/slave/recipes/chromium.py
index 093a74c65735937ea1439158c2bf4b43076e337b..0c0b0cceb2b606023cffd3be75b2dd50addd6820 100644
--- a/scripts/slave/recipes/chromium.py
+++ b/scripts/slave/recipes/chromium.py
@@ -9,6 +9,7 @@ DEPS = [
'chromium',
'chromium_android',
'chromium_tests',
+ 'file',
'isolate',
'json',
'path',
@@ -21,8 +22,24 @@ DEPS = [
'test_utils',
]
+from recipe_engine import config_types
+
+def ignore_undumpable(obj): # pragma: no cover
+ try:
+ return config_types.json_fixup(obj)
+ except TypeError:
+ return None
+
def RunSteps(api):
+ # build/tests/masters_recipes_tests.py needs to manipulate the BUILDERS
+ # dict, so we provide an API to dump it here.
+ if api.properties.get('dump_builders'): # pragma: no cover
+ api.file.write(
+ 'Dump BUILDERS dict', api.properties['dump_builders'],
+ api.json.dumps(api.chromium_tests.builders, default=ignore_undumpable))
+ return
+
mastername = api.properties.get('mastername')
buildername = api.properties.get('buildername')
@@ -532,4 +549,4 @@ def GenTests(api):
parent_build_archive_url='gs://test-domain/test-archive.zip'
) +
api.override_step_data('[collect] base_unittests', retcode=1)
- )
+ )
« no previous file with comments | « scripts/slave/recipes/blink_trybot.py ('k') | scripts/slave/recipes/chromium_codesearch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698