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 DEPS = [ | 5 DEPS = [ |
6 'gclient', | 6 'gclient', |
7 'recipe_engine/path', | 7 'recipe_engine/path', |
8 'recipe_engine/properties', | 8 'recipe_engine/properties', |
9 ] | 9 ] |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 # Use safesync url for lkgr. | 79 # Use safesync url for lkgr. |
80 soln.safesync_url = 'https://blink-status.appspot.com/lkgr' | 80 soln.safesync_url = 'https://blink-status.appspot.com/lkgr' |
81 | 81 |
82 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' | 82 bl_cfg.got_revision_mapping['src/blatley'] = 'got_blatley_revision' |
83 api.gclient.checkout( | 83 api.gclient.checkout( |
84 gclient_config=bl_cfg, | 84 gclient_config=bl_cfg, |
85 with_branch_heads=True, | 85 with_branch_heads=True, |
86 cwd=api.path['slave_build'].join('src', 'third_party')) | 86 cwd=api.path['slave_build'].join('src', 'third_party')) |
87 | 87 |
| 88 if api.properties.get('flag'): |
| 89 api.gclient.c.break_locks_flag = True |
88 api.gclient.break_locks() | 90 api.gclient.break_locks() |
89 | 91 |
90 del api.gclient.spec_alias | 92 del api.gclient.spec_alias |
91 | 93 |
92 api.gclient.runhooks() | 94 api.gclient.runhooks() |
93 | 95 |
94 assert not api.gclient.is_blink_mode | 96 assert not api.gclient.is_blink_mode |
95 | 97 |
96 | 98 |
97 def GenTests(api): | 99 def GenTests(api): |
98 yield api.test('basic') | 100 yield api.test('basic') |
99 | 101 |
| 102 yield api.test('new_flag') + api.properties(flag=True) |
| 103 |
100 yield api.test('revision') + api.properties(revision='abc') | 104 yield api.test('revision') + api.properties(revision='abc') |
101 | 105 |
102 yield api.test('tryserver') + api.properties.tryserver() | 106 yield api.test('tryserver') + api.properties.tryserver() |
OLD | NEW |