0
Files
src/tools/code_coverage/PRESUBMIT.py
Julia Hansbrough cc844a7b5a [fuzzing,coverage] Update script to download all fuzzing corpora.
* Updates which bucket to download corpora from.
* Due to the format corpora are stored in the new bucket, adds an unzip
  step
* Keys corpora to download off of built fuzzer targets instead of a
  static fuzzer list
* Adds tests

Change-Id: I710fa5bc5ddf821168c6847a1fdd3e4e5467e20f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4617684
Reviewed-by: Jeff Yoon <jeffyoon@google.com>
Commit-Queue: Julia Hansbrough <flowerhack@google.com>
Reviewed-by: Prakhar Asthana <pasthana@google.com>
Cr-Commit-Position: refs/heads/main@{#1161057}
2023-06-22 06:51:53 +00:00

22 lines
632 B
Python

# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
PRESUBMIT_VERSION = '2.0.0'
USE_PYTHON3 = True
def CheckChangeOnCommit(*args):
return _CommonChecks(*args)
def _CommonChecks(input_api, output_api):
cwd = input_api.PresubmitLocalPath()
path = input_api.os_path
files = [path.basename(f.LocalPath()) for f in input_api.AffectedFiles()]
if files and not input_api.is_windows:
tests = [path.join(cwd, 'download_fuzz_corpora_test.py')]
return input_api.canned_checks.RunUnitTests(input_api, output_api, tests)
return []