X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/f07e139b97ec44569470b024f3d6e21de8f2d032..e4821ef71322616f956e7d3148b9738e6faaa0aa:/tests/dtest.py diff --git a/tests/dtest.py b/tests/dtest.py index f17cf8e..a5a8be9 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -286,6 +286,7 @@ def stop_daemon(): Stop the daemon if it has not stopped already""" global daemon if daemon == None: + print " (daemon not running)" return rc = daemon.poll() if rc == None: @@ -337,7 +338,9 @@ def run(module=None, report=True): except Exception, e: traceback.print_exc(None, sys.stderr) failures += 1 - stop_daemon() + finally: + stop_daemon() + os.system("ps -ef | grep disorderd") if report: if failures: print " FAILED"