From b3f8288cca1951310928e3ba919c32b0c968249a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 12 Feb 2022 14:52:42 -0600 Subject: [PATCH] [test/subset] Don't hash files without reason Fixes https://github.com/harfbuzz/harfbuzz/issues/3118#issuecomment-894021518 --- test/subset/run-tests.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/subset/run-tests.py b/test/subset/run-tests.py index 79830c452..75f873855 100755 --- a/test/subset/run-tests.py +++ b/test/subset/run-tests.py @@ -11,7 +11,6 @@ import sys import tempfile import shutil import io -import hashlib from subset_test_suite import SubsetTestSuite @@ -63,11 +62,11 @@ def run_test (test, should_check_ots): expected_file = os.path.join (test_suite.get_output_directory (), test.get_font_name ()) with open (expected_file, "rb") as fp: - expected_hash = hashlib.sha224(fp.read()).hexdigest() + expected_contents = fp.read() with open (out_file, "rb") as fp: - actual_hash = hashlib.sha224(fp.read()).hexdigest() + actual_contents = fp.read() - if expected_hash == actual_hash: + if expected_contents == actual_contents: if should_check_ots: print ("Checking output with ots-sanitize.") if not check_ots (out_file):