#NEWLINE# def __init__( self , runs , conn , robot , reactor ) : #NEWLINE# #INDENT# self . _conn = conn #NEWLINE# self . _robot = robot #NEWLINE# self . _tests = [ RemoteTest ( conn , self . TAG , name ) for name in self . TYPES ] #NEWLINE# self . _deferred = d = Deferred ( ) #NEWLINE# d . addCallback ( self . _setup ) #NEWLINE# d . addCallback ( delay , 20 , reactor ) #NEWLINE# for _ in xrange ( runs ) : #NEWLINE# #INDENT# for test in self . _tests : #NEWLINE# #INDENT# d . addCallback ( test . run ) #NEWLINE# #UNINDENT# #UNINDENT# d . addCallback ( self . _postProcess ) #NEWLINE# d . addCallback ( delay , 2 , reactor ) #NEWLINE# def stop( _ ) : #NEWLINE# #INDENT# reactor . stop ( ) #NEWLINE# print ( '\ndone' ) #NEWLINE# #UNINDENT# d . addCallback ( stop )