Commit d8d957d6 authored by Vincent Pelletier's avatar Vincent Pelletier

Display exception traceback when receiving KeyboardInterrupt.

It usually happens when tests are stuck, and we want to know where it
was stuck.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2384 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 94192574
......@@ -16,6 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
import traceback
import optparse
import unittest
import tempfile
......@@ -355,6 +356,7 @@ if __name__ == "__main__":
if options.zodb:
runner.run('ZODB tests', ZODB_TEST_MODULES)
except KeyboardInterrupt:
traceback.print_exc()
options.sender = False
# build report
......
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