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

runner: fix ZeroDivisionError when no test is run

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