| OLD | NEW |
| (Empty) | |
| 1 # Copyright 2015 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 'findit', |
| 7 'path', |
| 8 'platform', |
| 9 'properties', |
| 10 ] |
| 11 |
| 12 |
| 13 def RunSteps(api): |
| 14 api.path['checkout'] = api.path.mkdtemp('fake_checkout') |
| 15 revision = api.properties['revision'] |
| 16 repo_dir = api.properties.get('repo_dir') |
| 17 api.findit.get_files_affected_by_revision(revision, repo_dir) |
| 18 |
| 19 |
| 20 def GenTests(api): |
| 21 yield api.test('affected_files_without_repo_dir') + api.properties( |
| 22 revision='r1', |
| 23 ) |
| 24 yield api.test('affected_files_with_repo_dir') + api.properties( |
| 25 revision='r1', |
| 26 repo_dir='third_party/icu', |
| 27 ) |
| 28 yield ( |
| 29 api.test('affected_files_on_win') + |
| 30 api.platform.name('win') + |
| 31 api.properties( |
| 32 revision='r1', |
| 33 repo_dir='third_party\\icu', |
| 34 ) |
| 35 ) |
| OLD | NEW |