~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/buildd/tests/harness.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-07 12:47:36 UTC
  • mfrom: (14237.1.12 use-txfixtures)
  • Revision ID: launchpad@pqm.canonical.com-20111107124736-jp9l66fr3ytxr3e3
[r=bac][no-qa] split out and depend upon txfixtures

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
import unittest
12
12
from ConfigParser import SafeConfigParser
13
13
 
14
 
import canonical
15
 
import canonical.buildd
 
14
from txfixtures.tachandler import TacTestFixture
16
15
 
17
16
from canonical.buildd.slave import BuildDSlave
18
 
from canonical.launchpad.daemons.tachandler import TacTestSetup
19
17
 
20
18
from lp.services.osutils import remove_tree
21
19
 
58
56
        f.close()
59
57
 
60
58
 
61
 
class BuilddSlaveTestSetup(TacTestSetup):
 
59
class BuilddSlaveTestSetup(TacTestFixture):
62
60
    r"""Setup BuildSlave for use by functional tests
63
61
 
64
62
    >>> fixture = BuilddSlaveTestSetup()
119
117
    @property
120
118
    def tacfile(self):
121
119
        return os.path.abspath(os.path.join(
122
 
            os.path.dirname(canonical.buildd.__file__),
 
120
            os.path.dirname(__file__),
 
121
            os.path.pardir,
123
122
            'buildd-slave.tac'
124
123
            ))
125
124