[test] Run "fonttools ttx" instead of "ttx"
This commit is contained in:
parent
91176d5b77
commit
49b1c763a0
|
@ -32,11 +32,11 @@ def which(program):
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
ttx = which ("ttx")
|
fonttools = which ("fonttools")
|
||||||
ots_sanitize = which ("ots-sanitize")
|
ots_sanitize = which ("ots-sanitize")
|
||||||
|
|
||||||
if not ttx:
|
if not fonttools:
|
||||||
print("TTX is not present, skipping test.")
|
print("fonttools is not present, skipping test.")
|
||||||
sys.exit (77)
|
sys.exit (77)
|
||||||
|
|
||||||
def cmd(command):
|
def cmd(command):
|
||||||
|
@ -101,8 +101,8 @@ def run_test(test, should_check_ots):
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
def run_ttx (file):
|
def run_ttx (file):
|
||||||
print ("ttx %s" % file)
|
print ("fonttools ttx %s" % file)
|
||||||
return cmd([ttx, "-q", "-o-", file])
|
return cmd([fonttools, "ttx", "-q", "-o-", file])
|
||||||
|
|
||||||
def strip_check_sum (ttx_string):
|
def strip_check_sum (ttx_string):
|
||||||
return re.sub ('checkSumAdjustment value=["]0x([0-9a-fA-F])+["]',
|
return re.sub ('checkSumAdjustment value=["]0x([0-9a-fA-F])+["]',
|
||||||
|
|
Loading…
Reference in New Issue