Part of canonical.buildd.tests.harness View In Hierarchy
Setup BuildSlave for use by functional tests
>>> BuilddSlaveTestSetup().setUp()
Make sure the server is running
>>> import xmlrpclib >>> s = xmlrpclib.Server('http://localhost:8221/rpc/') >>> s.echo('Hello World') ['Hello World'] >>> BuilddSlaveTestSetup().tearDown()
Again for luck !
>>> BuilddSlaveTestSetup().setUp() >>> s = xmlrpclib.Server('http://localhost:8221/rpc/')
>>> s.echo('Hello World') ['Hello World']
>>> info = s.info() >>> len(info) 3 >>> print info[:2] ['1.0', 'i386']
>>> for buildtype in sorted(info[2]): ... print buildtype binarypackage debian sourcepackagerecipe translation-templates
>>> s.status() ['BuilderStatus.IDLE', '']
>>> BuilddSlaveTestSetup().tearDown()
Method | setUpRoot | Recreate empty root directory to avoid problems. |
Method | tearDown | Tear down the system normally and additionaly remove the root. |
Method | root | Undocumented |
Method | tacfile | Undocumented |
Method | pidfile | Undocumented |
Method | logfile | Undocumented |
Inherited from TacTestSetup:
Method | setUp | Undocumented |
Method | killTac | Kill the TAC file if it is running. |
Method | sendSignal | Send the given signal to the tac process. |
Method | _hasDaemonStarted | Has the daemon started? |
Method | _waitForDaemonStartup | Wait for the daemon to fully start. |