提交 c14cbfec 编写于 作者: L Lucas Meneghel Rodrigues

Merge pull request #782 from lmr/fix-unittest-runner-bug

selftests/run: Ensure bad statuses trigger an exit code != 0
......@@ -28,4 +28,6 @@ def test_suite():
if __name__ == '__main__':
runner = unittest.TextTestRunner()
runner.run(test_suite())
result = runner.run(test_suite())
if result.failures or result.errors:
sys.exit(1)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册