#NEWLINE# def check( self ) : #NEWLINE# #INDENT# if self . widget : #NEWLINE# #INDENT# self . widget . update ( ) #NEWLINE# #UNINDENT# retcode = self . pbench . process . poll ( ) #NEWLINE# if ( retcode is not None ) : #NEWLINE# #INDENT# if ( retcode != 0 ) : #NEWLINE# #INDENT# self . log . info ( 'phantom-benchmark exit code: %s' , retcode ) #NEWLINE# raise RuntimeError ( 'phantom-benchmark exited with non-zero code' ) #NEWLINE# #UNINDENT# return True #NEWLINE# #UNINDENT# return False