| OLD | NEW |
| 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 3 # Use of this source code is governed by a BSD-style license |
| 4 # that can be found in the LICENSE file in the root of the source | 4 # that can be found in the LICENSE file in the root of the source |
| 5 # tree. An additional intellectual property rights grant can be found | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import json | 9 import json |
| 10 import os | 10 import os |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 (affected_file.LocalPath(), parse_error))) | 384 (affected_file.LocalPath(), parse_error))) |
| 385 return results | 385 return results |
| 386 | 386 |
| 387 | 387 |
| 388 def _RunPythonTests(input_api, output_api): | 388 def _RunPythonTests(input_api, output_api): |
| 389 def join(*args): | 389 def join(*args): |
| 390 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) | 390 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) |
| 391 | 391 |
| 392 test_directories = [ | 392 test_directories = [ |
| 393 join('tools', 'autoroller', 'unittests'), | 393 join('tools', 'autoroller', 'unittests'), |
| 394 join('tools', 'py_event_log_analyzer'), |
| 394 ] | 395 ] |
| 395 | 396 |
| 396 tests = [] | 397 tests = [] |
| 397 for directory in test_directories: | 398 for directory in test_directories: |
| 398 tests.extend( | 399 tests.extend( |
| 399 input_api.canned_checks.GetUnitTestsInDirectory( | 400 input_api.canned_checks.GetUnitTestsInDirectory( |
| 400 input_api, | 401 input_api, |
| 401 output_api, | 402 output_api, |
| 402 directory, | 403 directory, |
| 403 whitelist=[r'.+_test\.py$'])) | 404 whitelist=[r'.+_test\.py$'])) |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 for builder in masters[master]: | 530 for builder in masters[master]: |
| 530 if 'presubmit' in builder: | 531 if 'presubmit' in builder: |
| 531 # Do not trigger presubmit builders, since they're likely to fail | 532 # Do not trigger presubmit builders, since they're likely to fail |
| 532 # (e.g. OWNERS checks before finished code review), and we're running | 533 # (e.g. OWNERS checks before finished code review), and we're running |
| 533 # local presubmit anyway. | 534 # local presubmit anyway. |
| 534 pass | 535 pass |
| 535 else: | 536 else: |
| 536 try_config[master][builder] = ['defaulttests'] | 537 try_config[master][builder] = ['defaulttests'] |
| 537 | 538 |
| 538 return try_config | 539 return try_config |
| OLD | NEW |