Add file exclusion for tests we do not want to run in PRESUBMIT
Bug: webrtc:13691
Change-Id: I2d71599816cad31471746737235265d2f4b62894
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/252000
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Christoffer Jansson <jansson@google.com>
Cr-Commit-Position: refs/heads/main@{#36049}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index b83f262..5c7db2e 100755
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -819,21 +819,22 @@
def Join(*args):
return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)
+ excluded_files = [
+ # This test should be run manually after webrtc_dashboard_upload target
+ # has been built.
+ 'catapult_uploader_test.py'
+ ]
+
test_directories = [
input_api.PresubmitLocalPath(),
Join('rtc_tools', 'py_event_log_analyzer'),
Join('audio', 'test', 'unittests'),
] + [
root for root, _, files in os.walk(Join('tools_webrtc')) if any(
- f.endswith('_test.py') for f in files)
+ f.endswith('_test.py') and f not in excluded_files for f in files)
]
tests = []
- skipped_tests = [
- # This test should be run manually after webrtc_dashboard_upload target
- # has been built.
- r'catapult_uploader_test\.py$'
- ]
for directory in test_directories:
tests.extend(
@@ -842,7 +843,6 @@
output_api,
directory,
files_to_check=[r'.+_test\.py$'],
- files_to_skip=skipped_tests,
run_on_python2=False))
return input_api.RunTests(tests, parallel=True)