| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 'webports', | 51 'webports', |
| 52 'webrtc_test_resources', | 52 'webrtc_test_resources', |
| 53 'with_branch_heads', | 53 'with_branch_heads', |
| 54 ] | 54 ] |
| 55 | 55 |
| 56 | 56 |
| 57 def RunSteps(api): | 57 def RunSteps(api): |
| 58 for config_name in TEST_CONFIGS: | 58 for config_name in TEST_CONFIGS: |
| 59 api.gclient.make_config(config_name) | 59 api.gclient.make_config(config_name) |
| 60 | 60 |
| 61 src_cfg = api.gclient.make_config(GIT_MODE=True) | 61 src_cfg = api.gclient.make_config(GIT_MODE=True, CACHE_DIR='[ROOT]/git_cache') |
| 62 soln = src_cfg.solutions.add() | 62 soln = src_cfg.solutions.add() |
| 63 soln.name = 'src' | 63 soln.name = 'src' |
| 64 soln.url = 'https://chromium.googlesource.com/chromium/src.git' | 64 soln.url = 'https://chromium.googlesource.com/chromium/src.git' |
| 65 soln.revision = api.properties.get('revision') | 65 soln.revision = api.properties.get('revision') |
| 66 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' | 66 src_cfg.parent_got_revision_mapping['parent_got_revision'] = 'got_revision' |
| 67 api.gclient.c = src_cfg | 67 api.gclient.c = src_cfg |
| 68 api.gclient.checkout() | 68 api.gclient.checkout() |
| 69 | 69 |
| 70 api.gclient.spec_alias = 'WebKit' | 70 api.gclient.spec_alias = 'WebKit' |
| 71 bl_cfg = api.gclient.make_config() | 71 bl_cfg = api.gclient.make_config() |
| (...skipping 19 matching lines...) Expand all Loading... |
| 91 | 91 |
| 92 assert not api.gclient.is_blink_mode | 92 assert not api.gclient.is_blink_mode |
| 93 | 93 |
| 94 | 94 |
| 95 def GenTests(api): | 95 def GenTests(api): |
| 96 yield api.test('basic') | 96 yield api.test('basic') |
| 97 | 97 |
| 98 yield api.test('revision') + api.properties(revision='abc') | 98 yield api.test('revision') + api.properties(revision='abc') |
| 99 | 99 |
| 100 yield api.test('tryserver') + api.properties.tryserver() | 100 yield api.test('tryserver') + api.properties.tryserver() |
| OLD | NEW |