Skip subset to fonttools comparison test if TTX is not present.

This commit is contained in:
Garret Rieger 2018-02-08 14:26:18 -08:00 committed by Behdad Esfahbod
parent 29d915284e
commit d4d120ad79
1 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,11 @@ if not len(args):
print ("No tests supplied.")
sys.exit (1)
_, returncode = cmd(["which", "ttx"])
if returncode:
print("TTX is not present, skipping test.")
sys.exit (77)
fails = 0
for path in args:
with io.open(path, mode="r", encoding="utf-8") as f: