Commit 6453e2dc authored by Grégory Wisniewski's avatar Grégory Wisniewski

Intercept KeyboardInterrupt in test runner to display partial result.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2178 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1222781a
......@@ -355,12 +355,15 @@ if __name__ == "__main__":
# run requested tests
runner = NeoTestRunner()
try:
if options.unit:
runner.run('Unit tests', UNIT_TEST_MODULES)
if options.functional:
runner.run('Functional tests', FUNC_TEST_MODULES)
if options.zodb:
runner.run('ZODB tests', ZODB_TEST_MODULES)
except KeyboardInterrupt:
options.sender = False
# build report
runner.build()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment