X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fintegration-tests%2Fgnunet_testing.py.in;h=0e3cdaaf8228386647424f8d742f54a5d5b55a67;hb=ff92e76e780b33c64f2638086788c60282d962b2;hp=41e709f8c63cee76db264fa4bda31d27b7d42d2b;hpb=edc613c626ac4ae3e2539b5da8d2fece6fbd6653;p=oweals%2Fgnunet.git diff --git a/src/integration-tests/gnunet_testing.py.in b/src/integration-tests/gnunet_testing.py.in index 41e709f8c..0e3cdaaf8 100644 --- a/src/integration-tests/gnunet_testing.py.in +++ b/src/integration-tests/gnunet_testing.py.in @@ -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