Skip to content

Commit

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

import constants
import stateful_shell
Expand Down Expand Up @@ -272,7 +273,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)
shell.run_cmd(command)
subprocess.check_call(command, cwd=_CHEF_SCRIPT_PATH, shell=True)
exit(0)

#
Expand All @@ -291,7 +292,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}")
shell.run_cmd(command)
subprocess.check_call(command, cwd=_CHEF_SCRIPT_PATH, shell=True)
archive_prefix = "/workspace/artifacts/"
if not os.path.exists(archive_prefix):
os.mkdir(archive_prefix)
Expand Down

0 comments on commit 56afe21

Please sign in to comment.