gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r18603 - gnunet/src/integration-tests


From: gnunet
Subject: [GNUnet-SVN] r18603 - gnunet/src/integration-tests
Date: Thu, 15 Dec 2011 15:21:40 +0100

Author: wachs
Date: 2011-12-15 15:21:40 +0100 (Thu, 15 Dec 2011)
New Revision: 18603

Modified:
   gnunet/src/integration-tests/gnunet_testing.py.in
Log:
peer get automatically stopped


Modified: gnunet/src/integration-tests/gnunet_testing.py.in
===================================================================
--- gnunet/src/integration-tests/gnunet_testing.py.in   2011-12-15 14:09:56 UTC 
(rev 18602)
+++ gnunet/src/integration-tests/gnunet_testing.py.in   2011-12-15 14:21:40 UTC 
(rev 18603)
@@ -56,6 +56,12 @@
         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:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]