1
0
forked from Mirror/wren

Ugh, fix test script.

This commit is contained in:
Bob Nystrom
2015-03-14 09:49:55 -07:00
parent 5459993857
commit d1b48a7213

View File

@ -152,14 +152,14 @@ def run_test(path):
proc = Popen([WREN_APP, path], stdin=PIPE, stdout=PIPE, stderr=PIPE)
(out, err) = proc.communicate(input_bytes)
fails = []
try:
out = out.decode("utf-8").replace('\r\n', '\n')
err = err.decode("utf-8").replace('\r\n', '\n')
except:
fails.append('Error decoding output.')
fails = []
# Validate that no unexpected errors occurred.
if expect_return != 0 and err != '':
lines = err.split('\n')