handle wildcard label applying to all fuzz targets in a project (#7359)

Signed-off-by: Asra Ali <asraa@google.com>
This commit is contained in:
asraa 2022-03-03 21:59:08 -06:00 committed by GitHub
parent 4a656409a4
commit 2a72988f71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ def main():
out = sys.argv[2]
for target_name, labels in labels_by_target.items():
# Skip over wildcard value applying to all fuzz targets
if target_name == '*':
continue
with open(os.path.join(out, target_name + '.labels'), 'w') as file_handle:
file_handle.write('\n'.join(labels))