From 030723a851a8f8e34970a4c63dd8aaf7174c769e Mon Sep 17 00:00:00 2001 Message-Id: <030723a851a8f8e34970a4c63dd8aaf7174c769e.1715688179.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sat, 18 Oct 2008 11:45:37 +0100 Subject: [PATCH] Wait a bit after stopping the daemon when testsing, to stop silly races. Organization: Straylight/Edgeware From: Richard Kettlewell --- tests/dtest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/dtest.py b/tests/dtest.py index be45435..5015c48 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -294,6 +294,8 @@ Stop the daemon if it has not stopped already""" else: print " daemon already stopped" daemon = None + # Wait a bit for subprocess to finish too, to try to avoid stupid races + time.sleep(1) def run(module=None, report=True): """dtest.run(MODULE) -- [mdw]