From 91c7a225264dbcdaa4587c1e4804859b502a1067 Mon Sep 17 00:00:00 2001 From: Austin Bozowski Date: Tue, 24 May 2022 23:27:14 +0000 Subject: [PATCH] Fix indent error --- examples/chef/chef.py | 3 ++- examples/chef/chef_util.py | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/examples/chef/chef.py b/examples/chef/chef.py index 3be65ab7a425b1..6a9a8940b14201 100755 --- a/examples/chef/chef.py +++ b/examples/chef/chef.py @@ -170,11 +170,12 @@ def main(argv: Sequence[str]) -> None: action="store_true", dest="do_rpc_console") parser.add_option("-y", "--tty", help="Enumerated USB tty/serial interface enumerated for your physical device. E.g.: /dev/ACM0", dest="tty", metavar="TTY", default=None) - parser.add_option("", "--generate_zzz", help="Populates zzz_generated/chef//zap-generated with output of ZAP tool for every device in examples/chef/devices. If this flag is set, all other arguments are ignored except for --bootstrap_zap.", + parser.add_option("", "--generate_zzz", help="Populates zzz_generated/chef//zap-generated with output of ZAP tool for every device in examples/chef/devices. If this flag is set, all other arguments are ignored except for --bootstrap_zap and --validate_zzz.", dest="generate_zzz", action="store_true") parser.add_option("", "--validate_zzz", help="Checks if cached ZAP output needs to be regenrated, for use in CI. If this flag is set, all other arguments are ignored.", dest="validate_zzz", action="store_true") parser.add_option("", "--use_zzz", help="Use pre generated output from the ZAP tool found in the zzz_generated folder. Used to decrease execution time of CI jobs", dest="use_zzz", action="store_true") parser.add_option("", "--build_all", help="Builds all chef examples across all platforms and collates artifacts. Chef exits after completion.", dest="build_all", action="store_true") + parser.add_option("", "--ci", help="Builds Chef examples defined in chef_util.ci_allowlist. Uses specified target. Chef exits after completion.", dest="ci", action="store_true") options, _ = parser.parse_args(argv) diff --git a/examples/chef/chef_util.py b/examples/chef/chef_util.py index 592eea79d230e4..80f021edbeb941 100644 --- a/examples/chef/chef_util.py +++ b/examples/chef/chef_util.py @@ -27,11 +27,11 @@ def generate_device_manifest(chef_devices_dir: str, include_zap_submod: bool = F if device_dir_item.endswith(target_file_ext) and device_dir_item in ci_allowlist: device_name = device_dir_item[:-len(target_file_ext)] device_file_path = os.path.join(chef_devices_dir, device_dir_item) - with open(device_file_path, "rb") as device_file: - device_file_data = device_file.read() - device_file_md5 = hashlib.md5(device_file_data).hexdigest() - ci_manifest[device_name] = device_file_md5 - print(f"Manifest for {device_name} : {device_file_md5}") + with open(device_file_path, "rb") as device_file: + device_file_data = device_file.read() + device_file_md5 = hashlib.md5(device_file_data).hexdigest() + ci_manifest[device_name] = device_file_md5 + print(f"Manifest for {device_name} : {device_file_md5}") if include_zap_submod: ci_manifest["zap_commit"] = check_zap_master(repo_base_path) if write_manifest_file: