| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 | 6 |
| 7 DEPS = [ | 7 DEPS = [ |
| 8 'chromium', | 8 'chromium', |
| 9 'depot_tools/bot_update', | 9 'depot_tools/bot_update', |
| 10 'depot_tools/gclient', | 10 'depot_tools/gclient', |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 return | 115 return |
| 116 | 116 |
| 117 # Make it more likely to avoid inconsistencies when hitting different | 117 # Make it more likely to avoid inconsistencies when hitting different |
| 118 # mirrors. | 118 # mirrors. |
| 119 api.python.inline( | 119 api.python.inline( |
| 120 'wait for consistency', | 120 'wait for consistency', |
| 121 'import time; time.sleep(20)', | 121 'import time; time.sleep(20)', |
| 122 ) | 122 ) |
| 123 | 123 |
| 124 api.bot_update.ensure_checkout(force=True, no_shallow=True) | 124 api.bot_update.ensure_checkout(no_shallow=True) |
| 125 | 125 |
| 126 # Get deps file from pending ref. | 126 # Get deps file from pending ref. |
| 127 pending_deps = api.gitiles.download_file( | 127 pending_deps = api.gitiles.download_file( |
| 128 'https://chromium.googlesource.com/chromium/src', | 128 'https://chromium.googlesource.com/chromium/src', |
| 129 'DEPS', | 129 'DEPS', |
| 130 branch='refs/pending/heads/master', | 130 branch='refs/pending/heads/master', |
| 131 step_test_data= lambda: api.json.test_api.output({ | 131 step_test_data= lambda: api.json.test_api.output({ |
| 132 'value': base64.b64encode(TEST_DEPS_FILE % 'deadbeef'), | 132 'value': base64.b64encode(TEST_DEPS_FILE % 'deadbeef'), |
| 133 }), | 133 }), |
| 134 ) | 134 ) |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 '{"results": [{"subject": "Update V8 to foo",' + | 207 '{"results": [{"subject": "Update V8 to foo",' + |
| 208 ' "issue": 123456, "commit": false}]}')) | 208 ' "issue": 123456, "commit": false}]}')) |
| 209 ) | 209 ) |
| 210 yield (api.test('inconsistent_state') + | 210 yield (api.test('inconsistent_state') + |
| 211 api.properties.generic(mastername='client.v8') + | 211 api.properties.generic(mastername='client.v8') + |
| 212 api.override_step_data( | 212 api.override_step_data( |
| 213 'git cat-file', api.raw_io.stream_output( | 213 'git cat-file', api.raw_io.stream_output( |
| 214 TEST_DEPS_FILE % 'beefdead')) | 214 TEST_DEPS_FILE % 'beefdead')) |
| 215 ) | 215 ) |
| 216 | 216 |
| OLD | NEW |