~frankban/+junk/lpbuildbot-lpsetup

« back to all changes in this revision

Viewing changes to bzrbuildbot/subunittest.py

  • Committer: Francesco Banconi
  • Date: 2012-04-13 17:04:57 UTC
  • mfrom: (21.1.3 mro-fixes)
  • Revision ID: francesco.banconi@canonical.com-20120413170457-3bgozgjtfguufus0
[r=frankban] Changed the order of TestObserver's parents.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import re
2
2
import unittest
3
3
 
4
 
 
5
 
class SubunitObserver(object):
 
4
import buildbot.process.buildstep
 
5
 
 
6
 
 
7
class SubunitObserver(buildbot.process.buildstep.LogLineObserver):
6
8
    should_ignore = re.compile(
7
9
        r'^(successful|skip): .+:(setUp|tearDown)').match
8
10
 
17
19
    error_count = 0
18
20
 
19
21
    def outLineReceived(self, line):
 
22
        # XXX 2012-04-13 frankban bug=949950:
 
23
        #     This method matches subunit output. The implementation of
 
24
        #     stats collection is blocked until `testr run --parallel`
 
25
        #     will output the subunit stream.
20
26
        if self.should_ignore(line):
21
27
            return
22
28
        for attr, matcher in self.matchers: