Commit 21d83bd9 authored by Julien Muchembled's avatar Julien Muchembled

runner: fix ZeroDivisionError when no test is run

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2699 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 47eb8436
......@@ -184,6 +184,7 @@ class NeoTestRunner(unittest.TestResult):
def _buildSummary(self, add_status):
success = self.testsRun - len(self.errors) - len(self.failures)
add_status('Directory', self.temp_directory)
if self.testsRun:
add_status('Status', '%.3f%%' % (success * 100.0 / self.testsRun))
for var in os.environ.iterkeys():
if var.startswith('NEO_TEST'):
......
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