[test] Don’t skip subset tests early
Check for FontTools only when the checksums are mismatching.
This commit is contained in:
parent
b084153317
commit
9f544e5008
|
@ -18,8 +18,7 @@ from subset_test_suite import SubsetTestSuite
|
||||||
try:
|
try:
|
||||||
from fontTools.ttLib import TTFont
|
from fontTools.ttLib import TTFont
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print ("fonttools is not present, skipping test.")
|
TTFont = None
|
||||||
sys.exit (77)
|
|
||||||
|
|
||||||
ots_sanitize = shutil.which ("ots-sanitize")
|
ots_sanitize = shutil.which ("ots-sanitize")
|
||||||
|
|
||||||
|
@ -72,6 +71,10 @@ def run_test (test, should_check_ots):
|
||||||
if expected_hash == actual_hash:
|
if expected_hash == actual_hash:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
if TTFont is None:
|
||||||
|
print ("fonttools is not present, skipping test.")
|
||||||
|
sys.exit (77)
|
||||||
|
|
||||||
expected_ttx = io.StringIO ()
|
expected_ttx = io.StringIO ()
|
||||||
try:
|
try:
|
||||||
with TTFont (expected_file) as font:
|
with TTFont (expected_file) as font:
|
||||||
|
|
Loading…
Reference in New Issue