- revert plugin move. Add new identity-token
[oweals/gnunet.git] / src / integration-tests / gnunet_testing.py.in
index 41e709f8c63cee76db264fa4bda31d27b7d42d2b..7cead069b3743db4b05de2da9acc790241913e48 100644 (file)
@@ -14,8 +14,8 @@
 #
 #    You should have received a copy of the GNU General Public License
 #    along with GNUnet; see the file COPYING.  If not, write to the
-#    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-#    Boston, MA 02111-1307, USA.
+#    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+#    Boston, MA 02110-1301, USA.
 #
 # Functions for integration testing
 import os
@@ -53,11 +53,13 @@ class Check:
         if ((False == res) and (execs >= timeout)):
            print ('Check had timeout after ' +str(timeout)+ ' seconds')
            neg_cont (self)
-        elif ((False == res) and (execs >= timeout)):
-                       neg_cont (self)
+        elif ((False == res) and (execs < timeout)):
+            if (None != neg_cont):
+                neg_cont (self)
         else:
-            pos_cont (self)
-        return res            
+            if (None != pos_cont):
+                pos_cont (self)
+        return res     
     def run_once (self, pos_cont, neg_cont):
         execs = 0;
         res = False