Part of lp.services.daemons.tachandler View In Hierarchy
Known subclasses: lp.buildmaster.tests.harness.BuilddManagerTestSetup, lp.codehosting.tests.servers.CodeHostingTac, lp.registry.tests.test_distributionmirror_prober.HTTPServerTestSetup, lp.services.daemons.tests.test_tachandler.SimpleTac, lp.services.librarian.tests.test_client.FakeServerTestSetup, lp.services.librarianserver.testing.server.LibrarianServerFixture, lp.testing.keyserver.__init__.KeyServerTac
You must override setUpRoot to set up a root directory for the daemon.
Method | setUp | Undocumented |
Method | removeLog | Undocumented |
Method | truncateLog | Truncate the log file. |
Method | daemon_directory | Undocumented |
Method | setUpRoot | Override this. |
Method | _hasDaemonStarted | Has the daemon started? |
Startup is recognized by the appearance of readyservice.LOG_MAGIC in the log file.
Leaves everything up to and including the LOG_MAGIC
marker in
place. If the LOG_MAGIC
marker is not found the log is truncated to
0 bytes.
This should be able to cope with the root already existing, because it will be left behind after each test in case it's needed to diagnose a test failure (e.g. log files might contain helpful tracebacks).