Simplify hb-fuzzer output printing and fix ArchLinux bot

This commit is contained in:
Ebrahim Byagowi 2018-02-19 11:58:20 +03:30 committed by GitHub
parent be51f763a7
commit b095ce59eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -22,15 +22,11 @@ fails = 0
for line in open (os.path.join (srcdir, "..", "shaping", "data", "in-house", "tests", "fuzzed.tests")):
font = line.split (":")[0]
p = subprocess.Popen (
[hb_fuzzer, os.path.join (srcdir, "..", "shaping", font)],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
p = subprocess.Popen ([hb_fuzzer, os.path.join (srcdir, "..", "shaping", font)])
if p.wait () != 0:
fails = fails + 1
print ((p.stdout.read () + p.stderr.read ()).decode ("utf-8").strip ())
if fails:
print ("%i fuzzer related tests failed." % fails)
sys.exit (1)