Skip to content

Commit

Permalink
Reference
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 27, 2022
1 parent 997124e commit 7299fd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def main(argv: Sequence[str]) -> None:
parser.add_option("", "--build_all", help="For use in CD only. Builds and bundles all chef examples for the specified platform. Uses --use_zzz. Chef exits after completion.",
dest="build_all", action="store_true")
parser.add_option(
"", "--ci", help="Builds Chef examples defined in chef_util.ci_allowlist. Uses --use_zzz. Uses specified target from -t. Chef exits after completion.", dest="ci", action="store_true")
"", "--ci", help="Builds Chef examples defined in _CI_ALLOW_LIST. Uses --use_zzz. Uses specified target from -t. Chef exits after completion.", dest="ci", action="store_true")

options, _ = parser.parse_args(argv)

Expand All @@ -249,7 +249,7 @@ def main(argv: Sequence[str]) -> None:

if options.validate_zzz:
fix_instructions = "Cached files out of date. Please bootstrap, activate, install zap, run chef with the flag --generate_zzz and commit /examples/chef/zzz_generated and /examples/chef/cimanifes.json. Ensure you are running with the latest version of ZAP from master"
ci_manifest = chef_util.generate_device_manifest(_CHEF_DEVICES_DIR)
ci_manifest = generate_device_manifest(_CHEF_DEVICES_DIR)
with open(_CI_MANIFEST_FILE_NAME, "r", encoding="utf-8") as ci_manifest_file:
cached_manifest = json.loads(ci_manifest_file.read())
for device in _CI_MANIFEST:
Expand Down Expand Up @@ -328,8 +328,8 @@ def main(argv: Sequence[str]) -> None:
{_CHEF_SCRIPT_PATH}/devices/{device_name}.zap -o {device_out_dir}
"""))
shell.run_cmd(f"touch {device_out_dir}/af-gen-event.h")
chef_util.generate_device_manifest(include_zap_submod=True,
write_manifest_file=True)
generate_device_manifest(include_zap_submod=True,
write_manifest_file=True)
exit(0)

#
Expand Down

0 comments on commit 7299fd7

Please sign in to comment.