提交 64bab8b3 编写于 作者: G Garret Rieger 提交者: Behdad Esfahbod

[subset] Fix run-shape-fuzzer-tests.py. It was generating incorrect paths for input fonts.

上级 6f9a5843
......@@ -19,10 +19,12 @@ please provide it as the first argument to the tool""")
print ('hb_shape_fuzzer:', hb_shape_fuzzer)
fails = 0
for line in open (os.path.join (srcdir, "..", "shaping", "data", "in-house", "tests", "fuzzed.tests")):
parent_path = os.path.join (srcdir, "..", "shaping", "data", "in-house", "tests")
for line in open (os.path.join (parent_path, "fuzzed.tests")):
font = line.split (":")[0]
font_path = os.path.join (parent_path, font)
p = subprocess.Popen ([hb_shape_fuzzer, os.path.join (srcdir, "..", "shaping", font)])
p = subprocess.Popen ([hb_shape_fuzzer, font_path])
if p.wait () != 0:
fails = fails + 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册