繁体   English   中英

Locust 不支持 `--exit-code-on-error` 参数?

[英]Locust not supporting `--exit-code-on-error` argument?

有人可以帮助确定我在使用--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

得到以下错误:

Usage: locust [options] [LocustClass [LocustClass2 ... ]]

main.py: error: no such option: --exit-code-on-error

显然,支持--exit-code-on-error如下所示: https : //github.com/locustio/locust/blob/610a87f433900d8baae51709c41e3b147a53bc97/locust/main.py#L286

如果我去掉这个选项,那么下面的命令会运行:

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选项。 知道怎么做吗? 提前致谢。

请确保您使用的是最新版本的 locust(目前为 0.13.2)。

可能 —exit-code-on-error 功能尚未发布,或者您没有最新版本。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM