From 925dc06e51ac0970b69903b7a29a037c7c370d9f Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 15 Dec 2011 14:21:40 +0000 Subject: [PATCH] peer get automatically stopped --- src/integration-tests/gnunet_testing.py.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/integration-tests/gnunet_testing.py.in b/src/integration-tests/gnunet_testing.py.in index 18fc7a249..404d5db4e 100644 --- a/src/integration-tests/gnunet_testing.py.in +++ b/src/integration-tests/gnunet_testing.py.in @@ -56,6 +56,12 @@ class Peer: self.test = test self.started = False self.cfg = cfg_file + def __del__(self): + if (self.started == True): + print 'ERROR! Peer using cfg ' + self.cfg + ' was not stopped' + self.started == False + if (False == self.stop ()): + print 'ERROR! Peer using cfg ' + self.cfg + ' could not be stopped' def start (self): self.test.p ("Starting peer using cfg " + self.cfg) try: -- 2.25.1