summaryrefslogtreecommitdiff
path: root/src/integration-tests/gnunet_testing.py.in
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-12-15 14:21:40 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-12-15 14:21:40 +0000
commit925dc06e51ac0970b69903b7a29a037c7c370d9f (patch)
tree3eefd829eca67ef6089f9a6d09e3f029b45d3e3a /src/integration-tests/gnunet_testing.py.in
parent1589e5a5b084a507a782e450e2d2bb4d3dba23fc (diff)
peer get automatically stopped
Diffstat (limited to 'src/integration-tests/gnunet_testing.py.in')
-rw-r--r--src/integration-tests/gnunet_testing.py.in6
1 files changed, 6 insertions, 0 deletions
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: