Commit 8852a8da authored by Grégory Wisniewski's avatar Grégory Wisniewski

Improve informations displayed by test runner.

- Python version
- ZODB version (if available)
- Use machine() instead of processor() and architecture()

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2315 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 61b581c3
......@@ -194,21 +194,28 @@ class NeoTestRunner(unittest.TestResult):
def _buildSystemInfo(self):
import platform
import datetime
try:
from ZODB import __version__ as zodb_version
except ImportError:
zodb_version = 'unknown'
success = self.testsRun - len(self.errors) - len(self.failures)
s = """
Date : %s
Node : %s
Processor : %s (%s)
Machine : %s
System : %s (%s)
Python : %s
ZODB : %s
Directory : %s
Status : %7.3f%%
""" % (
datetime.date.today().isoformat(),
platform.node(),
platform.processor(),
platform.architecture()[0],
platform.machine(),
platform.system(),
platform.release(),
platform.python_version(),
zodb_version,
self.temp_directory,
success * 100.0 / self.testsRun,
)
......
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