Simplify hb-fuzzer output printing and fix ArchLinux bot
This commit is contained in:
parent
be51f763a7
commit
b095ce59eb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue