Package buildbot :: Package steps :: Module subunit
[frames] | no frames]

Source Code for Module buildbot.steps.subunit

 1  from unittest import TestResult 
 2   
 3  from buildbot.steps.shell import ShellCommand 
 4   
5 -class SubunitShellCommand(ShellCommand):
6 """A ShellCommand that sniffs subunit output. 7 8 Ideally not needed, and thus here to be trivially deleted. See issue #615 9 """ 10
11 - def __init__(self, *args, **kwargs):
12 ShellCommand.__init__(self, *args, **kwargs) 13 # importing here gets around an import loop 14 from buildbot.process import subunitlogobserver 15 self.addLogObserver('stdio', subunitlogobserver.SubunitLogObserver()) 16 self.progressMetrics = self.progressMetrics + ('tests', 'tests failed')
17