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 379 matching lines...) Loading... |
390 (affected_file.LocalPath(), parse_error))) | 390 (affected_file.LocalPath(), parse_error))) |
391 return results | 391 return results |
392 | 392 |
393 | 393 |
394 def _RunPythonTests(input_api, output_api): | 394 def _RunPythonTests(input_api, output_api): |
395 def join(*args): | 395 def join(*args): |
396 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) | 396 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) |
397 | 397 |
398 test_directories = [ | 398 test_directories = [ |
399 join('tools', 'autoroller', 'unittests'), | 399 join('tools', 'autoroller', 'unittests'), |
| 400 join('webrtc', 'tools', 'py_event_log_analyzer'), |
400 ] | 401 ] |
401 | 402 |
402 tests = [] | 403 tests = [] |
403 for directory in test_directories: | 404 for directory in test_directories: |
404 tests.extend( | 405 tests.extend( |
405 input_api.canned_checks.GetUnitTestsInDirectory( | 406 input_api.canned_checks.GetUnitTestsInDirectory( |
406 input_api, | 407 input_api, |
407 output_api, | 408 output_api, |
408 directory, | 409 directory, |
409 whitelist=[r'.+_test\.py$'])) | 410 whitelist=[r'.+_test\.py$'])) |
(...skipping 125 matching lines...) Loading... |
535 for builder in masters[master]: | 536 for builder in masters[master]: |
536 if 'presubmit' in builder: | 537 if 'presubmit' in builder: |
537 # Do not trigger presubmit builders, since they're likely to fail | 538 # Do not trigger presubmit builders, since they're likely to fail |
538 # (e.g. OWNERS checks before finished code review), and we're running | 539 # (e.g. OWNERS checks before finished code review), and we're running |
539 # local presubmit anyway. | 540 # local presubmit anyway. |
540 pass | 541 pass |
541 else: | 542 else: |
542 try_config[master][builder] = ['defaulttests'] | 543 try_config[master][builder] = ['defaulttests'] |
543 | 544 |
544 return try_config | 545 return try_config |
OLD | NEW |