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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 results.append(output_api.PresubmitError('%s could not be parsed: %s' % | 398 results.append(output_api.PresubmitError('%s could not be parsed: %s' % |
399 (affected_file.LocalPath(), parse_error))) | 399 (affected_file.LocalPath(), parse_error))) |
400 return results | 400 return results |
401 | 401 |
402 | 402 |
403 def _RunPythonTests(input_api, output_api): | 403 def _RunPythonTests(input_api, output_api): |
404 def join(*args): | 404 def join(*args): |
405 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) | 405 return input_api.os_path.join(input_api.PresubmitLocalPath(), *args) |
406 | 406 |
407 test_directories = [ | 407 test_directories = [ |
408 join('tools', 'autoroller', 'unittests'), | 408 join('tools-webrtc', 'autoroller', 'unittests'), |
409 join('webrtc', 'tools', 'py_event_log_analyzer'), | 409 join('webrtc', 'tools', 'py_event_log_analyzer'), |
410 ] | 410 ] |
411 | 411 |
412 tests = [] | 412 tests = [] |
413 for directory in test_directories: | 413 for directory in test_directories: |
414 tests.extend( | 414 tests.extend( |
415 input_api.canned_checks.GetUnitTestsInDirectory( | 415 input_api.canned_checks.GetUnitTestsInDirectory( |
416 input_api, | 416 input_api, |
417 output_api, | 417 output_api, |
418 directory, | 418 directory, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 input_api, output_api)) | 522 input_api, output_api)) |
523 results.extend(input_api.canned_checks.CheckChangeHasDescription( | 523 results.extend(input_api.canned_checks.CheckChangeHasDescription( |
524 input_api, output_api)) | 524 input_api, output_api)) |
525 results.extend(_CheckChangeHasBugField(input_api, output_api)) | 525 results.extend(_CheckChangeHasBugField(input_api, output_api)) |
526 results.extend(input_api.canned_checks.CheckChangeHasTestField( | 526 results.extend(input_api.canned_checks.CheckChangeHasTestField( |
527 input_api, output_api)) | 527 input_api, output_api)) |
528 results.extend(input_api.canned_checks.CheckTreeIsOpen( | 528 results.extend(input_api.canned_checks.CheckTreeIsOpen( |
529 input_api, output_api, | 529 input_api, output_api, |
530 json_url='http://webrtc-status.appspot.com/current?format=json')) | 530 json_url='http://webrtc-status.appspot.com/current?format=json')) |
531 return results | 531 return results |
OLD | NEW |