From 12746062f84786be964d41ce73017fb780183826 Mon Sep 17 00:00:00 2001 Message-Id: <12746062f84786be964d41ce73017fb780183826.1717445185.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 24 May 2009 12:42:49 +0100 Subject: [PATCH] Tests terminate server with SIGTERM rather than trying to send a shutdown command; the latter may not work if users haven't been set up right. Organization: Straylight/Edgeware From: Richard Kettlewell --- tests/dtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dtest.py b/tests/dtest.py index dd3c3a2..e2fed30 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -287,10 +287,10 @@ Stop the daemon if it has not stopped already""" rc = daemon.poll() if rc == None: print " stopping daemon" - disorder.client().shutdown() + os.kill(daemon.pid, 15) print " waiting for daemon" rc = daemon.wait() - print " daemon has stopped" + print " daemon has stopped (rc=%d)" % rc else: print " daemon already stopped" daemon = None -- [mdw]