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

Unified Diff: scripts/slave/recipe_modules/trigger/example.py

Issue 966993002: api.trigger: refactoring, made extensible (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 10 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/recipe_modules/trigger/example.py
diff --git a/scripts/slave/recipe_modules/trigger/example.py b/scripts/slave/recipe_modules/trigger/example.py
index 0f36ce1e6257453610b7f0e5612df9476a0bc4d0..8caec414c791985a75b77f46c2b1c0331a22371f 100644
--- a/scripts/slave/recipe_modules/trigger/example.py
+++ b/scripts/slave/recipe_modules/trigger/example.py
@@ -24,30 +24,38 @@ def GenTests(api):
yield (
api.test('trigger_one_build') +
api.properties(trigger_props_list=[{
- 'buildername': 'cross-compiler',
- 'a': 1,
+ 'builder_name': 'cross-compiler',
+ 'properties': {'a': 1},
}])
)
yield (
api.test('trigger_two_builds') +
api.properties(trigger_props_list=[{
- 'buildername': 'cross-compiler',
- 'a': 1,
+ 'builder_name': 'cross-compiler',
+ 'properties': {'a': 1},
}, {
- 'buildername': 'cross-compiler',
- 'a': 2,
+ 'builder_name': 'cross-compiler',
+ 'properties': {'a': 2},
}])
)
yield (
- api.test('buildbot.changes') +
+ api.test('buildbot_changes') +
smut 2015/02/28 01:44:51 git add example.expected/buildbot_changes.json
nodir 2015/03/02 02:26:11 Done.
api.properties(trigger_props_list=[{
- 'buildername': 'cross-compiler',
- 'buildbot.changes': [{
+ 'builder_name': 'cross-compiler',
+ 'buildbot_changes': [{
'author': 'someone@chromium.org',
'revision': 'deadbeef',
'comments': 'hello world!',
}],
}])
)
+
+ yield (
+ api.test('backward_compatibility') +
smut 2015/02/28 01:44:51 git add example.expected/backward_compatibility.js
nodir 2015/03/02 02:26:11 Done.
+ api.properties(trigger_props_list=[{
+ 'buildername': 'cross-compiler',
+ 'a': 1,
+ }])
+ )

Powered by Google App Engine
This is Rietveld 408576698