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 f17cf8e1af5a665f08ddb4cacf885bd53c26f096..ec42e702ff7b1c805291c365bce0e4c8b0643bc0 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"