From d4d120ad79ff65c6987ca127da5d9ee30740b0b1 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 8 Feb 2018 14:26:18 -0800 Subject: [PATCH] Skip subset to fonttools comparison test if TTX is not present. --- test/subset/run-tests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/subset/run-tests.py b/test/subset/run-tests.py index 353101a3f..c19004ab4 100755 --- a/test/subset/run-tests.py +++ b/test/subset/run-tests.py @@ -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: