From 8ec4bd82d100e16eec6e872cb241205f6b4d803e Mon Sep 17 00:00:00 2001 From: Austin Bozowski Date: Fri, 27 May 2022 22:44:20 +0000 Subject: [PATCH] Stateful shell --- examples/chef/chef.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 59cbb94df6f593..b147dd1e9e28bd 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -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) # @@ -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}")