mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-07 23:41:22 +08:00
fix: check if locustio installed
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Release History
|
# Release History
|
||||||
|
|
||||||
## 2.4.1 (2019-12-11)
|
## 2.4.1 (2019-12-12)
|
||||||
|
|
||||||
**Added**
|
**Added**
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
**Fixed**
|
**Fixed**
|
||||||
|
|
||||||
- fix: typo testfile_paths
|
- fix: typo testfile_paths
|
||||||
|
- fix: check if locustio installed
|
||||||
|
|
||||||
## 2.4.0 (2019-12-11)
|
## 2.4.0 (2019-12-11)
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ try:
|
|||||||
# monkey patch ssl at beginning to avoid RecursionError when running locust.
|
# monkey patch ssl at beginning to avoid RecursionError when running locust.
|
||||||
from gevent import monkey
|
from gevent import monkey
|
||||||
monkey.patch_ssl()
|
monkey.patch_ssl()
|
||||||
|
from locust import main as locust_main
|
||||||
except ImportError:
|
except ImportError:
|
||||||
msg = """
|
msg = """
|
||||||
Locust is not installed, install first and try again.
|
Locust is not installed, install first and try again.
|
||||||
@@ -61,8 +62,7 @@ def gen_locustfile(testcase_file_path):
|
|||||||
|
|
||||||
|
|
||||||
def start_locust_main():
|
def start_locust_main():
|
||||||
from locust.main import main
|
locust_main.main()
|
||||||
main()
|
|
||||||
|
|
||||||
|
|
||||||
def start_master(sys_argv):
|
def start_master(sys_argv):
|
||||||
|
|||||||
Reference in New Issue
Block a user