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

Side by Side Diff: PRESUBMIT.py

Issue 2789533002: Improve USB device reset logic (Closed)
Patch Set: fix test Created 3 years, 8 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/run_video_analysis.py » ('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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | webrtc/tools/run_video_analysis.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698