From 9f544e5008e27346ace98abd7c3e8e5184724920 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 4 Aug 2021 04:20:14 +0200 Subject: [PATCH] =?UTF-8?q?[test]=20Don=E2=80=99t=20skip=20subset=20tests?= =?UTF-8?q?=20early?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Check for FontTools only when the checksums are mismatching. --- test/subset/run-tests.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/subset/run-tests.py b/test/subset/run-tests.py index 1f31a0708..1bd3e298e 100755 --- a/test/subset/run-tests.py +++ b/test/subset/run-tests.py @@ -18,8 +18,7 @@ from subset_test_suite import SubsetTestSuite try: from fontTools.ttLib import TTFont except ImportError: - print ("fonttools is not present, skipping test.") - sys.exit (77) + TTFont = None ots_sanitize = shutil.which ("ots-sanitize") @@ -72,6 +71,10 @@ def run_test (test, should_check_ots): if expected_hash == actual_hash: return 0 + if TTFont is None: + print ("fonttools is not present, skipping test.") + sys.exit (77) + expected_ttx = io.StringIO () try: with TTFont (expected_file) as font: