chiark / gitweb /
More reliably shut down daemon when test fails or is skipped.
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 7 Mar 2010 15:20:46 +0000 (15:20 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 7 Mar 2010 15:20:46 +0000 (15:20 +0000)
tests/dtest.py

index f17cf8e..ec42e70 100644 (file)
@@ -337,7 +337,8 @@ def run(module=None, report=True):
     except Exception, e:
         traceback.print_exc(None, sys.stderr)
         failures += 1
-    stop_daemon()
+    finally:
+        stop_daemon()
     if report:
         if failures:
             print " FAILED"