提交 d11d8688 authored 作者: Frederic's avatar Frederic

Print the tests case in the summary of the buildbot.

上级 91679294
...@@ -9,11 +9,13 @@ def filter_output(fd_in): ...@@ -9,11 +9,13 @@ def filter_output(fd_in):
if len(toks): if len(toks):
if toks[0] == "File" and toks[-1].startswith('test'): if toks[0] == "File" and toks[-1].startswith('test'):
s += line s += line
if toks[0].startswith("ImportError"): elif toks[0].startswith("ImportError"):
s += line s += line
if toks[0] in ["KnownFailureTest:", "Exception:", "Failure:", elif toks[0] in ["KnownFailureTest:", "Exception:", "Failure:",
"AssertionError", "AssertionError:"]: "AssertionError", "AssertionError:"]:
s += line s += line
elif toks[0] == "Executing" and toks[1] in ["tests", 'nosetests']:
s += line
return s return s
if __name__ == "__main__": if __name__ == "__main__":
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论