Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
aBozowski committed May 31, 2022
1 parent 77f334e commit bddb576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/chef/chef.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def main(argv: Sequence[str]) -> None:
zzz_dir = os.path.join(_CHEF_ZZZ_ROOT, device)
device_md5_file = os.path.join(zzz_dir, _CI_DEVICE_MANIFEST_NAME)
if device not in cached_device_manifest:
flush_print(f"NOT IN MANIFEST {device}: {fix_instructions}")
flush_print(f"MANIFEST MISSING {device}: {fix_instructions}")
elif cached_device_manifest[device] != device_md5:
flush_print(f"MANIFEST MISMATCH {device}: {fix_instructions}")
exit(1)
Expand All @@ -307,15 +307,15 @@ def main(argv: Sequence[str]) -> None:
with open(device_md5_file, "r", encoding="utf-8") as md5_file:
output_cached_md5 = md5_file.read()
if output_cached_md5 != device_md5:
flush_print(f"MISMATCH OUTPUT {device}: {fix_instrucitons}")
flush_print(f"OUTPUT MISMATCH {device}: {fix_instrucitons}")
exit(1)
if False:
# TODO
# Disabled; should check:
# Current branch when writing manifest
# Master in CI
flush_print("BAD ZAP VERSION: "+fix_instructions)
exit(1) # should only warn in output and not stop builds
# should only warn in output and not stop builds
flush_print("Cached ZAP output is up to date!")
exit(0)

Expand Down

0 comments on commit bddb576

Please sign in to comment.