1 Star 0 Fork 0

tonnyluo/pwndbg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
pytests_launcher.py 757 Bytes
一键复制 编辑 原始数据 按行查看 历史
Paweł Płatek 提交于 2020-04-27 14:02 . Try heap (#744)
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_literals
import os
import pytest
import sys
print(sys.argv)
sys._pwndbg_unittest_run = True
CURRENT_DIR = os.path.dirname(os.path.realpath(__file__))
test = os.environ['PWNDBG_LAUNCH_TEST']
test = os.path.join(CURRENT_DIR, test)
# If you want to debug tests locally, add '--pdb' here
args = [test, '-vvv', '-s', '--showlocals', '--color=yes']
print('Launching pytest with args: %s' % args)
return_code = pytest.main(args)
if return_code != 0:
print('-' * 80)
print('If you want to debug tests locally, modify {} and add --pdb to its args'.format(__file__))
print('-' * 80)
sys.exit(return_code)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tonnyluo/pwndbg.git
git@gitee.com:tonnyluo/pwndbg.git
tonnyluo
pwndbg
pwndbg
dev

搜索帮助

Cb406eda 1850385 E526c682 1850385