trinity.py 文件源码

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

项目:avocado-misc-tests 作者: avocado-framework 项目源码 文件源码
def test(self):
        '''
        Trinity need to run as non root user
        '''

        args = self.params.get('runarg', default=' ')

        process.system('su - trinity -c " %s  %s  %s"' %
                       (os.path.join(self.srcdir, 'trinity'), args,
                        '-N 1000000'), shell=True)

        dmesg = process.system_output('dmesg')

        # verify if system having issue after fuzzer run

        match = re.search(r'unhandled', dmesg, re.M | re.I)
        if match:
            self.log.info("Testcase failure as segfault")
        match = re.search(r'Call Trace:', dmesg, re.M | re.I)
        if match:
            self.log.info("some call traces seen please check")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号