From 64bab8b3d009ed4327c2db9fa3425682de225810 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Thu, 15 Mar 2018 16:12:00 -0700 Subject: [PATCH] [subset] Fix run-shape-fuzzer-tests.py. It was generating incorrect paths for input fonts. --- test/fuzzing/run-shape-fuzzer-tests.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/fuzzing/run-shape-fuzzer-tests.py b/test/fuzzing/run-shape-fuzzer-tests.py index 088b36a46..43378d1ba 100755 --- a/test/fuzzing/run-shape-fuzzer-tests.py +++ b/test/fuzzing/run-shape-fuzzer-tests.py @@ -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