[infra] using setdefault

This commit is contained in:
Mike Aizatsky 2017-03-10 15:26:21 -08:00
parent 7448a7e9d8
commit a103ad072f
1 changed files with 2 additions and 2 deletions

View File

@ -38,6 +38,7 @@ def load_project_yaml(project_dir):
project_yaml.setdefault('name', project_name)
project_yaml.setdefault('image',
'gcr.io/clusterfuzz-external/oss-fuzz/' + project_name)
project_yaml.setdefault('sanitizers', DEFAULT_SANITIZERS)
return project_yaml
@ -66,8 +67,7 @@ def get_build_steps(project_yaml):
},
]
sanitizers = project_yaml.get('sanitizers', DEFAULT_SANITIZERS)
for sanitizer in sanitizers:
for sanitizer in project_yaml['sanitizers']:
env = CONFIGURATIONS["sanitizer-" + sanitizer]
out = '/workspace/out/' + sanitizer
zip_file = name + "-" + sanitizer + "-" + ts + ".zip"