aboutsummaryrefslogtreecommitdiff
path: root/infra/helper.py
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2019-05-24 21:06:22 +0300
committerAbhishek Arya <inferno@chromium.org>2019-05-24 11:06:22 -0700
commit91a17744a0ec6e3330a8277d868d9df0cc55fd33 (patch)
treebd2b7ade47ebb6fc488933de334968e2c2830efa /infra/helper.py
parent2de6dcc3377858e9269d31c36e63608d10e26064 (diff)
downloadoss-fuzz-91a17744a0ec6e3330a8277d868d9df0cc55fd33.tar.gz
infra: skip files whose names start with afl while looking for fuzz targets (#2445)
This should help to get rid of the "WARNING: corpus for systemd_afl-showmap not found:" messages (that are harmless but confusing a bit). In general _get_fuzz_targets should probably be in sync with ./infra/base-images/base-runner/test_all (where a file is considered a fuzz target if grep can find "ELF" in it and so on).
Diffstat (limited to 'infra/helper.py')
-rwxr-xr-xinfra/helper.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/infra/helper.py b/infra/helper.py
index b994d68fc..975aa1548 100755
--- a/infra/helper.py
+++ b/infra/helper.py
@@ -523,6 +523,9 @@ def _get_fuzz_targets(project_name):
"""Return names of fuzz targest build in the project's /out directory."""
fuzz_targets = []
for name in os.listdir(_get_output_dir(project_name)):
+ if name.startswith('afl-'):
+ continue
+
path = os.path.join(_get_output_dir(project_name), name)
if os.path.isfile(path) and os.access(path, os.X_OK):
fuzz_targets.append(name)