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")
评论列表
文章目录