提交 ae1edc41 编写于 作者: E Eugene Konkov

fix console output

上级 322e5031
......@@ -88,7 +88,7 @@ def main(args):
(name, ext) = os.path.splitext(case)
report_testcase = et.Element("testcase", attrib = {"name": name})
print "{0:70}: ".format(name),
print "{0:70}".format(name + ": "),
if not args.zookeeper and 'zookeeper' in name:
report_testcase.append(et.Element("skipped", attrib = {"message": "no zookeeper"}))
......@@ -193,10 +193,10 @@ def main(args):
args.output.write(et.tostring(report, encoding = "UTF-8", xml_declaration=True, pretty_print=True))
if failures_total > 0:
print("{COLOR_FAIL}Having {0} errors!{COLOR_RESET}".format(failures_total, **COLORS))
print("\n{COLOR_FAIL}Having {0} errors!{COLOR_RESET}".format(failures_total, **COLORS))
sys.exit(1)
else:
print("{COLOR_OK}All tests passed.{COLOR_RESET}".format(**COLORS))
print("\n{COLOR_OK}All tests passed.{COLOR_RESET}".format(**COLORS))
sys.exit(0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册