1
2
3 from unittest import TestResult
4 from buildbot.process import buildstep
5
7 """A trivial thunk used to discard passthrough content."""
8
11
12
14 """Observe a log that may contain subunit output.
15
16 This class extends TestResult to receive the callbacks from the subunit
17 parser in the most direct fashion.
18 """
19
29
31 """Process a received line."""
32
33 self.protocol.lineReceived(line + '\n')
34
38
42
46
48 """An issue - failing, erroring etc test."""
49 self.step.setProgress('tests failed', len(self.failures) + len(self.errors))
50
51
52 import buildbot.steps.subunit
53 SubunitShellCommand = buildbot.steps.subunit.SubunitShellCommand
54