mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 10:04:24 +01:00
[subset] Fix run-shape-fuzzer-tests.py. It was generating incorrect paths for input fonts.
This commit is contained in:
1 parent
6f9a584371
commit
64bab8b3d0
1 file changed
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user