[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:
@@ -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. """
|
||||
|
||||
Reference in New Issue
Block a user