#NEWLINE# def update_result( self , context ) : #NEWLINE# #INDENT# super ( RealLinpack , self ) . update_result ( context ) #NEWLINE# score_regex = re . compile ( 'Optimum.*threads:\\s*([0-9])+.*score:\\s*([0-9]+\\.[0-9]+).*MFLOPS' ) #NEWLINE# match_found = False #NEWLINE# with open ( self . logcat_log ) as logcat_file : #NEWLINE# #INDENT# for line in self : #NEWLINE# #INDENT# match = re . search ( score_regex , line ) #NEWLINE# if match : #NEWLINE# #INDENT# number_of_threads = match . group ( 1 ) #NEWLINE# score = match . group ( 2 ) #NEWLINE# context . result . add_metric ( 'optimal number of threads' , number_of_threads , None ) #NEWLINE# context . result . add_metric ( 'score' , score , 'MFLOPS' ) #NEWLINE# match_found = True #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# if ( not match_found ) : #NEWLINE# #INDENT# self . logger . warning ( 'Failed To collect results for real linpack' )