Skip to content

Commit

Permalink
Switch to stateful shell
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 25, 2022
1 parent 1b4a0f1 commit 88b88bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import yaml
import hashlib
import json
import subprocess
import tarfile

import constants
Expand Down Expand Up @@ -273,7 +272,7 @@ def main(argv: Sequence[str]) -> None:
if device_dir_item.endswith(target_file_ext) and device_dir_item in chef_util.ci_allowlist:
device_name = device_dir_item[:-len(target_file_ext)]
command = './chef.py -cbr --use_zzz -d {} -t {}'.format(device_name, options.build_target)
subprocess.check_call(command, cwd=_CHEF_SCRIPT_PATH, shell=True)
shell.run_cmd(command)
exit(0)

#
Expand All @@ -292,7 +291,7 @@ def main(argv: Sequence[str]) -> None:
output_dir = os.path.join(_CHEF_SCRIPT_PATH, directory)
command = './chef.py -czbr -d {} -t {}'.format(device_name, platform)
print(f"Building {command}")
subprocess.check_call(command, cwd=_CHEF_SCRIPT_PATH, shell=True)
shell.run_cmd(command)
archive_prefix = "/workspace/artifacts/"
if not os.path.exists(archive_prefix):
os.mkdir(archive_prefix)
Expand Down

0 comments on commit 88b88bd

Please sign in to comment.