OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 DEPS = [ |
| 6 'gclient', |
| 7 'recipe_engine/path', |
| 8 'recipe_engine/properties', |
| 9 ] |
| 10 |
| 11 def RunSteps(api): |
| 12 src_cfg = api.gclient.make_config(GIT_MODE=True) |
| 13 soln = src_cfg.solutions.add() |
| 14 soln.name = 'src' |
| 15 soln.url = 'https://chromium.googlesource.com/chromium/src.git' |
| 16 soln.revision = api.properties.get('revision') |
| 17 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' |
| 18 api.gclient.c = src_cfg |
| 19 api.gclient.checkout() |
| 20 |
| 21 api.gclient.spec_alias = 'WebKit' |
| 22 bl_cfg = api.gclient.make_config() |
| 23 soln = bl_cfg.solutions.add() |
| 24 soln.name = 'WebKit' |
| 25 soln.url = 'svn://svn.chromium.org/blink/trunk' |
| 26 bl_cfg.revisions['third_party/WebKit'] = '123' |
| 27 |
| 28 # Use safesync url for lkgr. |
| 29 soln.safesync_url = 'https://blink-status.appspot.com/lkgr' |
| 30 |
| 31 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' |
| 32 api.gclient.checkout( |
| 33 gclient_config=bl_cfg, |
| 34 with_branch_heads=True, |
| 35 cwd=api.path['slave_build'].join('src', 'third_party')) |
| 36 |
| 37 api.gclient.break_locks() |
| 38 |
| 39 del api.gclient.spec_alias |
| 40 |
| 41 api.gclient.runhooks() |
| 42 |
| 43 assert not api.gclient.is_blink_mode |
| 44 |
| 45 |
| 46 def GenTests(api): |
| 47 yield api.test('basic') |
| 48 |
| 49 yield api.test('revision') + api.properties(revision='abc') |
| 50 |
| 51 yield api.test('tryserver') + api.properties.tryserver() |
OLD | NEW |