| Index: scripts/slave/recipes/cros/cbuildbot_tryjob.py
|
| diff --git a/scripts/slave/recipes/cros/cbuildbot_tryjob.py b/scripts/slave/recipes/cros/cbuildbot_tryjob.py
|
| index 5c3e8ab3d79f06ff309e8dd60081bceb9c559e12..0127fe98be408d2121a6bdd74b6b2dd854300bf9 100644
|
| --- a/scripts/slave/recipes/cros/cbuildbot_tryjob.py
|
| +++ b/scripts/slave/recipes/cros/cbuildbot_tryjob.py
|
| @@ -3,6 +3,7 @@
|
| # found in the LICENSE file.
|
|
|
| import base64
|
| +import json
|
| import zlib
|
|
|
|
|
| @@ -177,3 +178,20 @@ def GenTests(api):
|
| )
|
| + api.chromite.seed_chromite_config(_CHROMITE_CONFIG)
|
| )
|
| +
|
| + # Test a config with buildbucket properties
|
| + yield (
|
| + api.test('pre_cq_buildbucket_config')
|
| + + api.properties(
|
| + mastername='chromiumos.tryserver',
|
| + buildername='pre-cq',
|
| + slavename='test',
|
| + repository='https://chromium.googlesource.com/chromiumos/tryjobs.git',
|
| + revision=api.gitiles.make_hash('test'),
|
| + cbb_config='binhost-pre-cq',
|
| + cbb_extra_args='["--timeout", "14400", "--remote-trybot",'
|
| + '"--remote-version=4"]',
|
| + buildbucket=json.dumps({'build': {'id':'12345'}})
|
| + )
|
| + + api.chromite.seed_chromite_config(_CHROMITE_CONFIG)
|
| + )
|
|
|