Python 蝗虫不支持`--error`参数上的退出代码?
有人能帮我确定我犯了什么错误吗?Python 蝗虫不支持`--error`参数上的退出代码?,python,locust,Python,Locust,有人能帮我确定我犯了什么错误吗?——错误时退出code python -m locust.main -f tt/tt_test.py -H http://thuis:8088/public --no-web --clients=3 --hatch-rate=1 --run-time=1m --csv=social_soak --exit-code-on-error=0 获取以下错误: Usage: locust [options] [LocustClass [LocustClass2 ...
——错误时退出code
python -m locust.main -f tt/tt_test.py -H http://thuis:8088/public --no-web --clients=3 --hatch-rate=1 --run-time=1m --csv=social_soak --exit-code-on-error=0
获取以下错误:
Usage: locust [options] [LocustClass [LocustClass2 ... ]]
main.py: error: no such option: --exit-code-on-error
显然,支持出现错误时退出代码,如下所示:
如果我去掉此选项,则会运行以下命令:
python -m locust.main -f tt/tt_test.py -H http://thuis:8088/public --no-web --clients=3 --hatch-rate=1 --run-time=1m --csv=social_soak
但是我真的想使用
--exit code on error
选项。你知道怎么做吗?提前感谢。请确保您使用的是最新版本的蝗虫(目前为0.13.2)
可能错误时的-exit代码功能还没有发布,或者您没有最新的版本