Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed Jun 10, 2022
1 parent d9ca2a6 commit 759ddb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/chef/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ which run in parallel.
These jobs use a platform-specific image with base `chip-build`.

The build jobs call chef with the options `--ci -t <PLATFORM>`. The `--ci`
option will execute builds for all devices specified in `_CI_ALLOW_LIST` defined
option will execute builds for all devices specified in `cicd_config["ci_allow_list"]` defined
in `chef.py` (so long as these devices are also in `/devices`) on the specified
platform.
8 changes: 2 additions & 6 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,7 @@ def flush_print(


def unwrap_cmd(cmd: str) -> str:
"""Dedent and replace new line with space.
Args:
cmd: The command to unwrap.
"""
"""Dedent and replace new line with space."""
return textwrap.dedent(cmd).replace("\n", " ")


Expand Down Expand Up @@ -491,7 +487,7 @@ def main(argv: Sequence[str]) -> None:
archive_suffix = ".tar.gz"
os.makedirs(archive_prefix, exist_ok=True)
for device_name in _DEVICE_LIST:
for platform, platform_label in cicd_config["cd_platforms"].items():
for platform, label in cicd_config["cd_platforms"].items():
command = f"./chef.py -cbr --use_zzz -d {device_name} -t {platform}"
flush_print(f"Building {command}", with_border=True)
shell.run_cmd(f"cd {_CHEF_SCRIPT_PATH}")
Expand Down

0 comments on commit 759ddb0

Please sign in to comment.