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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 (affected_file.LocalPath(), parse_error))) | 464 (affected_file.LocalPath(), parse_error))) |
465 return results | 465 return results |
466 | 466 |
467 | 467 |
468 def _RunPythonTests(input_api, output_api): | 468 def _RunPythonTests(input_api, output_api): |
469 def Join(*args): | 469 def Join(*args): |
470 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) | 470 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) |
471 | 471 |
472 test_directories = [ | 472 test_directories = [ |
473 Join('webrtc', 'tools', 'py_event_log_analyzer'), | 473 Join('webrtc', 'tools', 'py_event_log_analyzer'), |
| 474 Join('webrtc', 'tools'), |
474 Join('webrtc', 'audio', 'test', 'unittests'), | 475 Join('webrtc', 'audio', 'test', 'unittests'), |
475 ] + [ | 476 ] + [ |
476 root for root, _, files in os.walk(Join('tools-webrtc')) | 477 root for root, _, files in os.walk(Join('tools-webrtc')) |
477 if any(f.endswith('_test.py') for f in files) | 478 if any(f.endswith('_test.py') for f in files) |
478 ] | 479 ] |
479 | 480 |
480 tests = [] | 481 tests = [] |
481 for directory in test_directories: | 482 for directory in test_directories: |
482 tests.extend( | 483 tests.extend( |
483 input_api.canned_checks.GetUnitTestsInDirectory( | 484 input_api.canned_checks.GetUnitTestsInDirectory( |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 input_api, output_api)) | 598 input_api, output_api)) |
598 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 599 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
599 input_api, output_api)) | 600 input_api, output_api)) |
600 results.extend(_CheckChangeHasBugField(input_api, output_api)) | 601 results.extend(_CheckChangeHasBugField(input_api, output_api)) |
601 results.extend(input_api.canned_checks.CheckChangeHasTestField( | 602 results.extend(input_api.canned_checks.CheckChangeHasTestField( |
602 input_api, output_api)) | 603 input_api, output_api)) |
603 results.extend(input_api.canned_checks.CheckTreeIsOpen( | 604 results.extend(input_api.canned_checks.CheckTreeIsOpen( |
604 input_api, output_api, | 605 input_api, output_api, |
605 json_url='http://webrtc-status.appspot.com/current?format=json')) | 606 json_url='http://webrtc-status.appspot.com/current?format=json')) |
606 return results | 607 return results |
OLD | NEW |