Optionally manage a daemon during selftest runs
authorJeremy Stanley <fungi@yuggoth.org>
Mon, 16 Jul 2018 03:18:17 +0000 (03:18 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Mon, 16 Jul 2018 03:18:17 +0000 (03:18 +0000)
commit8a903d4a3899982b281ca33ee9c131b2fd9ef04d
tree1fb73e482e58502df208c1f68b24570a95819080
parentbf5f384fab6ab61f85b1f3872efbe12f6796ef51
Optionally manage a daemon during selftest runs

If a mudpy config file is supplied when invoking the selftest suite,
use it to start the service. This is intended for use with testing
automation such as tox. Handle both daemonized/disassociated and
direct child process possibilities, and attempt to clean the up
afterward. Also clean up the test environment when starting in case
stale processes or old logs were left behind by a previous run.
mudpy/tests/selftest.py