OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 """Launches the gatekeeper.""" | 5 """Launches the gatekeeper.""" |
6 | 6 |
7 | 7 |
8 DEPS = [ | 8 DEPS = [ |
9 'depot_tools/infra_paths', | |
10 'gatekeeper', | 9 'gatekeeper', |
11 'recipe_engine/path', | 10 'recipe_engine/path', |
12 ] | 11 ] |
13 | 12 |
14 | 13 |
15 def RunSteps(api): | 14 def RunSteps(api): |
16 api.gatekeeper( | 15 api.gatekeeper( |
17 api.infra_paths['build'].join('scripts', 'slave', 'gatekeeper.json'), | 16 api.path['build'].join('scripts', 'slave', 'gatekeeper.json'), |
18 api.infra_paths['build'].join('scripts', 'slave', 'gatekeeper_trees.json'), | 17 api.path['build'].join('scripts', 'slave', 'gatekeeper_trees.json'), |
19 ) | 18 ) |
20 | 19 |
21 | 20 |
22 def GenTests(api): | 21 def GenTests(api): |
23 yield ( | 22 yield ( |
24 api.test('basic') | 23 api.test('basic') |
25 + api.step_data( | 24 + api.step_data( |
26 'reading gatekeeper_trees.json', | 25 'reading gatekeeper_trees.json', |
27 api.gatekeeper.fake_test_data(), | 26 api.gatekeeper.fake_test_data(), |
28 ) | 27 ) |
29 ) | 28 ) |
30 | 29 |
31 yield ( | 30 yield ( |
32 api.test('keep_going') | 31 api.test('keep_going') |
33 + api.step_data( | 32 + api.step_data( |
34 'reading gatekeeper_trees.json', | 33 'reading gatekeeper_trees.json', |
35 api.gatekeeper.fake_test_data(), | 34 api.gatekeeper.fake_test_data(), |
36 ) | 35 ) |
37 + api.step_data('gatekeeper: chromium', retcode=1) | 36 + api.step_data('gatekeeper: chromium', retcode=1) |
38 ) | 37 ) |
OLD | NEW |