Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: PRESUBMIT.py

Issue 1999113002: New rtc dump analyzing tool in Python (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added protobuf dependency back. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/tools/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...) Expand 10 before | Expand all | Expand 10 after
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...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | webrtc/tools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698