[Neo-report] r2315 gregory - /trunk/tools/runner
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Sep 30 11:11:02 CEST 2010
Author: gregory
Date: Thu Sep 30 11:11:00 2010
New Revision: 2315
Log:
Improve informations displayed by test runner.
- Python version
- ZODB version (if available)
- Use machine() instead of processor() and architecture()
Modified:
trunk/tools/runner
Modified: trunk/tools/runner
==============================================================================
--- trunk/tools/runner [iso-8859-1] (original)
+++ trunk/tools/runner [iso-8859-1] Thu Sep 30 11:11:00 2010
@@ -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,
)
More information about the Neo-report
mailing list