comparison nist_wrapper.py @ 19:a394029414c6

fix
author pieter.lukasse@wur.nl
date Fri, 23 Jan 2015 17:42:19 +0100
parents dae90b9abf61
children 3abd271b4626
comparison
equal deleted inserted replaced
18:dae90b9abf61 19:a394029414c6
140 time.sleep(2) 140 time.sleep(2)
141 timeSleeping = timeSleeping+2 141 timeSleeping = timeSleeping+2
142 if timeSleeping > (startUpTime + job_size*2): 142 if timeSleeping > (startUpTime + job_size*2):
143 # abort with timeout: 143 # abort with timeout:
144 utils.log_message(log_file, "No results after " + str(timeSleeping) + " seconds...") 144 utils.log_message(log_file, "No results after " + str(timeSleeping) + " seconds...")
145 # uggly workaround:
146 utils.kill_process_by_name("nistms.exe")
147 utils.kill_process_by_name("nistms$.exe")
145 raise Exception('Error: timeout waiting for NIST results.') 148 raise Exception('Error: timeout waiting for NIST results.')
146 149
147 utils.log_message(log_file, "done...") 150 utils.log_message(log_file, "done...")
148 # kill process: 151 # kill process:
149 #p.terminate() - not needed, nistm$ will terminate...nistms.exe is the one that 152 #p.terminate() - not needed, nistm$ will terminate...nistms.exe is the one that