[svn r58316] (iko, pedronis)

move the FileLogSession into the py.lib proper, activated with the option --resultlog (suggestions
for a better name are welcome)

- added its tests
- plus a functional/integration test in test_config in the style of the one for eventlog

--HG--
branch : trunk
This commit is contained in:
pedronis
2008-09-22 14:34:54 +02:00
parent ef5709d30b
commit 8b3fe55158
5 changed files with 268 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ import py
from py.__.test import event, outcome
from py.__.test.event import EventBus
import py.__.test.custompdb
from py.__.test.resultlog import ResultLog
# used for genitems()
from py.__.test.outcome import Exit
@@ -34,6 +35,10 @@ class Session(object):
print >>f, ev
f.flush()
self.bus.subscribe(eventwrite)
resultlog = self.config.option.resultlog
if resultlog:
f = py.path.local(resultlog).open('w')
self.resultlog = ResultLog(self.bus, f)
def fixoptions(self):
""" check, fix and determine conflicting options. """