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

Side by Side Diff: PRESUBMIT.py

Issue 2783343003: Support multiple connected Android devices in low bandwidth audio test (Closed)
Patch Set: Rebase 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/audio/test/low_bandwidth_audio_test.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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 results.append(output_api.PresubmitError('%s could not be parsed: %s' % 463 results.append(output_api.PresubmitError('%s could not be parsed: %s' %
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', 'audio', 'test', 'unittests'),
474 ] + [ 475 ] + [
475 root for root, _, files in os.walk(Join('tools-webrtc')) 476 root for root, _, files in os.walk(Join('tools-webrtc'))
476 if any(f.endswith('_test.py') for f in files) 477 if any(f.endswith('_test.py') for f in files)
477 ] 478 ]
478 479
479 tests = [] 480 tests = []
480 for directory in test_directories: 481 for directory in test_directories:
481 tests.extend( 482 tests.extend(
482 input_api.canned_checks.GetUnitTestsInDirectory( 483 input_api.canned_checks.GetUnitTestsInDirectory(
483 input_api, 484 input_api,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 input_api, output_api)) 576 input_api, output_api))
576 results.extend(input_api.canned_checks.CheckChangeHasDescription( 577 results.extend(input_api.canned_checks.CheckChangeHasDescription(
577 input_api, output_api)) 578 input_api, output_api))
578 results.extend(_CheckChangeHasBugField(input_api, output_api)) 579 results.extend(_CheckChangeHasBugField(input_api, output_api))
579 results.extend(input_api.canned_checks.CheckChangeHasTestField( 580 results.extend(input_api.canned_checks.CheckChangeHasTestField(
580 input_api, output_api)) 581 input_api, output_api))
581 results.extend(input_api.canned_checks.CheckTreeIsOpen( 582 results.extend(input_api.canned_checks.CheckTreeIsOpen(
582 input_api, output_api, 583 input_api, output_api,
583 json_url='http://webrtc-status.appspot.com/current?format=json')) 584 json_url='http://webrtc-status.appspot.com/current?format=json'))
584 return results 585 return results
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/test/low_bandwidth_audio_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698