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

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

Issue 23889036: Refactor the way that TestApi works so that it is actually useful. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: License headers Created 7 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
Index: scripts/slave/recipes/chromium.py
diff --git a/scripts/slave/recipes/chromium.py b/scripts/slave/recipes/chromium.py
index 8f49fa65914f3754df5e72bdba32042e9cf14f8b..211dab3733fb9fc78543bd314678e7157b5cc2bc 100644
--- a/scripts/slave/recipes/chromium.py
+++ b/scripts/slave/recipes/chromium.py
@@ -5,6 +5,7 @@
DEPS = [
'chromium',
'gclient',
+ 'platform',
'properties',
'python',
]
@@ -31,14 +32,9 @@ def GenSteps(api):
def GenTests(api):
for plat in ('win', 'mac', 'linux'):
for bits in (32, 64):
- yield 'basic_%s_%s' % (plat, bits), {
- 'mock': {'platform': {'name': plat}},
- 'properties': {'TARGET_BITS': bits},
- }
- yield 'fail', {
- 'step_mocks': {
- 'compile': {
- '$R': 1
- }
- }
- }
+ yield (
+ api.test('basic_%s_%s' % (plat, bits)) +
+ api.properties(TARGET_BITS=bits) +
+ api.platform(plat, bits)
+ )
+ yield api.test('fail') + api.step_data('compile', retcode=1)

Powered by Google App Engine
This is Rietveld 408576698