1
2
3 from unittest import TestResult
4
5 from buildbot.steps.shell import ShellCommand
6 from buildbot.process import buildstep
7
8
10 """A trivial thunk used to discard passthrough content."""
11
14
15
17 """Observe a log that may contain subunit output.
18
19 This class extends TestResult to receive the callbacks from the subunit
20 parser in the most direct fashion.
21 """
22
32
34 """Process a received line."""
35
36 self.protocol.lineReceived(line + '\n')
37
41
45
49
51 """An issue - failing, erroring etc test."""
52 self.step.setProgress('tests failed', len(self.failures) + len(self.errors))
53
54
56 """A ShellCommand that sniffs subunit output.
57
58 Ideally not needed, and thus here to be trivially deleted. See issue #615
59 """
60
65