简体   繁体   English

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

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

Can someone help determining what I am doing wrong with having --exit-code-on-error ?有人可以帮助确定我在使用--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

Getting below error:得到以下错误:

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

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

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

If I take out this option, then the below command runs:如果我去掉这个选项,那么下面的命令会运行:

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

But I would really like to use the --exit-code-on-error option.但我真的很想使用--exit-code-on-error选项。 Any idea how to do that?知道怎么做吗? Thanks in advance.提前致谢。

Please make sure you are using the latest version of locust (0.13.2 at the moment).请确保您使用的是最新版本的 locust(目前为 0.13.2)。

Probably the —exit-code-on-error feature had not yet made it into a release, or you didnt have the latest release.可能 —exit-code-on-error 功能尚未发布,或者您没有最新版本。

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

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