Skip to content

Commit

Permalink
Stateful shell
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 27, 2022
1 parent 29700a5 commit 8ec4bd8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ def main(argv: Sequence[str]) -> None:
for device_name in [d for d in _DEVICE_LIST if d in _CI_ALLOW_LIST]:
if options.build_target == "nrfconnect":
shell.run_cmd("export GNUARMEMB_TOOLCHAIN_PATH=\"$PW_ARM_CIPD_INSTALL_DIR\"")
shell.run_cmd(f"./{_REPO_BASE_PATH}/examples/chef/chef.py -cbr --use_zzz -d {device_name} -t {options.build_target}")
shell.run_cmd(f"cd {_CHEF_SCRIPT_PATH}")
shell.run_cmd(f"./chef.py -cbr --use_zzz -d {device_name} -t {options.build_target}")
exit(0)

#
Expand All @@ -377,8 +378,9 @@ def main(argv: Sequence[str]) -> None:
flush_print("-" * 64)
flush_print(f"Building {command}")
flush_print("-" * 64)
shell.run_cmd(f"cd {_CHEF_SCRIPT_PATH}")
shell.run_cmd("export GNUARMEMB_TOOLCHAIN_PATH=\"$PW_ARM_CIPD_INSTALL_DIR\"")
shell.run_cmd(f"./{_REPO_BASE_PATH}/examples/chef/chef.py -cbr --use_zzz -d {device_name} -t {platform}")
shell.run_cmd(f"./chef.py -cbr --use_zzz -d {device_name} -t {platform}")
archive_name = f"{label}-chef-{device_name}-wifi-rpc"
archive_full_name = archive_prefix + archive_name + archive_suffix
flush_print(f"Adding build output to archive {archive_full_name}")
Expand Down

0 comments on commit 8ec4bd8

Please sign in to comment.