From 2a72988f71421304af27c3d3c6b831c5d67adbd7 Mon Sep 17 00:00:00 2001 From: asraa Date: Thu, 3 Mar 2022 21:59:08 -0600 Subject: [PATCH] handle wildcard label applying to all fuzz targets in a project (#7359) Signed-off-by: Asra Ali --- infra/base-images/base-builder/write_labels.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infra/base-images/base-builder/write_labels.py b/infra/base-images/base-builder/write_labels.py index 92a820a43..3b3a6d39a 100755 --- a/infra/base-images/base-builder/write_labels.py +++ b/infra/base-images/base-builder/write_labels.py @@ -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))