Fix CI script

This commit is contained in:
o9000 2017-12-29 12:53:29 +01:00
parent a9a9a753bc
commit c064ec70ed

View file

@ -246,10 +246,10 @@ def run_unit_tests(tint2path, use_asan):
return return
if "tests succeeded" in out: if "tests succeeded" in out:
num_tests = [line for line in out.split("\n") if "tint2: Running" in line][0] num_tests = [line for line in out.split("\n") if "tint2: Running" in line][0]
print "All {0} tests succeeded.".format(num_tests) print("All {0} tests succeeded.".format(num_tests))
return return
if "tests failed" in out: if "tests failed" in out:
print out print("```\n" + out.strip() + "\n```")
stop_xvfb() stop_xvfb()