def _wait_xena_2544_complete(self):
"""
Wait for Xena2544.exe completion.
:return: None
"""
data = ''
while True:
try:
self.mono_pipe.wait(60)
self._log_handle.close()
break
except subprocess.TimeoutExpired:
# check the log to see if Xena2544 has completed and mono is
# deadlocked.
data += self._log_handle.read()
if 'TestCompletedSuccessfully' in data:
self._log_handle.close()
self.mono_pipe.terminate()
break
评论列表
文章目录