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) |
- ) |
+ ) |