diff --git a/tools/run-tests b/tools/run-tests index 078288c1..478e215d 100755 --- a/tools/run-tests +++ b/tools/run-tests @@ -722,8 +722,6 @@ class Namespace: context = mainloop.get_context() while True: - context.iteration(may_block=False) - try: ret = func(*args) if ret: @@ -735,8 +733,6 @@ class Namespace: GLib.source_remove(timeout) raise e - sleep(0.1) - if done.value == True: if isinstance(exception, Exception): raise exception @@ -745,6 +741,8 @@ class Namespace: else: return + context.iteration(may_block=True) + def __str__(self): ret = 'Namespace: %s\n' % self.name ret += 'Processes:\n'