xena.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:vswitchperf 作者: opnfv 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号