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)
commit00ff35f1da63c54cb06838b1cbfccf74ef28d5b5
tree1fb73e482e58502df208c1f68b24570a95819080
parent6ec06b65f1f32f5709a949ba13ab8e161d924ae3
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