def run_vis(self, config):
"""."""
self.poll_master_stdout(5, 'Waiting to receive',
'run_vis initialisation')
pid = subprocess.Popen(['/usr/bin/python', '-m',
'sip.emulators.csp_visibility_sender',
config],
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
pid.wait()
output = pid.communicate()
if DEBUG:
print('--------------------------')
print('nvis_sender, stdout:')
print('--------------------------')
print(output[0].decode("utf-8"))
print('--------------------------')
print('nvis_sender, stderr:')
print('--------------------------')
print(output[1].decode("utf-8"))
self.poll_master_stdout(5, 'Received heap 9', 'run_vis termination')
test_execution.py 文件源码
python
阅读 34
收藏 0
点赞 0
评论 0
评论列表
文章目录