test_13_TestSB.py 文件源码

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

项目:core-framework 作者: RedhawkSDR 项目源码 文件源码
def test_pid(self):
        a = sb.launch('comp_src')
        #status,output = commands.getstatusoutput('ps -ef | grep comp_src | grep -v grep ')
        status,output = commands.getstatusoutput('ps -ww -f | grep comp_src ')
        lines = output.split('\n')
        for line in lines:
          if 'IOR' in line:
            break
        _pid = line.split()[1]
        self.assertEquals(int(_pid), a._pid)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号