juju/juju — pull request #612 by wallyworld (2014-08-27 01:51:26+00:00)
Title: Make some machine/unit agent tests more robust

Fixes: https://bugs.launchpad.net/juju-core/+bug/1361721

If a machine is marked as Dead part way through agent startup, as happens in some tests, the agent exits without realising it needs to terminate.