Chromium Code Reviews| 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, |
| + }]) |
| + ) |