| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import base64 | 5 import base64 |
| 6 import json |
| 6 import zlib | 7 import zlib |
| 7 | 8 |
| 8 | 9 |
| 9 DEPS = [ | 10 DEPS = [ |
| 10 'chromite', | 11 'chromite', |
| 11 'gitiles', | 12 'gitiles', |
| 12 'recipe_engine/json', | 13 'recipe_engine/json', |
| 13 'recipe_engine/properties', | 14 'recipe_engine/properties', |
| 14 ] | 15 ] |
| 15 | 16 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 buildername='etc', | 171 buildername='etc', |
| 171 slavename='test', | 172 slavename='test', |
| 172 repository='https://chromium.googlesource.com/chromiumos/tryjobs.git', | 173 repository='https://chromium.googlesource.com/chromiumos/tryjobs.git', |
| 173 revision=api.gitiles.make_hash('test'), | 174 revision=api.gitiles.make_hash('test'), |
| 174 cbb_config='xxx-fakeboard-fakebuild', | 175 cbb_config='xxx-fakeboard-fakebuild', |
| 175 cbb_extra_args='["--timeout", "14400", "--remote-trybot",' | 176 cbb_extra_args='["--timeout", "14400", "--remote-trybot",' |
| 176 '"--remote-version=4"]', | 177 '"--remote-version=4"]', |
| 177 ) | 178 ) |
| 178 + api.chromite.seed_chromite_config(_CHROMITE_CONFIG) | 179 + api.chromite.seed_chromite_config(_CHROMITE_CONFIG) |
| 179 ) | 180 ) |
| 181 |
| 182 # Test a config with buildbucket properties |
| 183 yield ( |
| 184 api.test('pre_cq_buildbucket_config') |
| 185 + api.properties( |
| 186 mastername='chromiumos.tryserver', |
| 187 buildername='pre-cq', |
| 188 slavename='test', |
| 189 repository='https://chromium.googlesource.com/chromiumos/tryjobs.git', |
| 190 revision=api.gitiles.make_hash('test'), |
| 191 cbb_config='binhost-pre-cq', |
| 192 cbb_extra_args='["--timeout", "14400", "--remote-trybot",' |
| 193 '"--remote-version=4"]', |
| 194 buildbucket=json.dumps({'build': {'id':'12345'}}) |
| 195 ) |
| 196 + api.chromite.seed_chromite_config(_CHROMITE_CONFIG) |
| 197 ) |
| OLD | NEW |