Skip to content

Commit

Permalink
Skip bugged case + Reduce amount of prints in comparison script
Browse files Browse the repository at this point in the history
  • Loading branch information
fmoletta committed Jan 17, 2024
1 parent 3d17276 commit f9a449e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vm/src/tests/cairo_pie_comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@
with ZipFile(filename1) as cairo_lang_pie_zip, ZipFile(filename2) as cairo_vm_pie_zip:
# Compare json files
for file in strict_comparison_files:
# Skipping this check due to a bug in the memory holes count
# TODO: Remove it once the bug is fixed
if filename1 == "../../../cairo_programs/keccak_alternative_hint.pie.zip" and file == "execution_resources.json":
continue
with cairo_lang_pie_zip.open(file) as cairo_lang_file, cairo_vm_pie_zip.open(file) as cairo_vm_file:
cl_content = json.load(cairo_lang_file)
cv_content = json.load(cairo_vm_file)
if cl_content == cv_content:
print(f"Comparison succesful for {filename1}/{file} vs {filename2}/{file}")
else:
if cl_content != cv_content:
print(f"Comparison unsuccesful for {filename1}/{file} vs {filename2}/{file}")
exit(1)

print(f"Comparison succesful for {filename1} vs {filename2}")

0 comments on commit f9a449e

Please sign in to comment.