File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 49
49
locust_cloud_version = f" (locust-cloud { importlib .metadata .version ('locust-cloud' )} )"
50
50
except ModuleNotFoundError as e :
51
51
locust_cloud_version = ""
52
+ locust_cloud = None
52
53
if e .msg != "No module named 'locust_cloud'" :
53
54
raise
54
55
@@ -170,6 +171,9 @@ def is_valid_percentile(parameter):
170
171
# parse all command line options
171
172
options = parse_options ()
172
173
174
+ if getattr (options , "cloud" , None ):
175
+ sys .exit (locust_cloud .main ())
176
+
173
177
if options .headful :
174
178
options .headless = False
175
179
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ dependencies = [
52
52
" Flask-Cors>=3.0.10" ,
53
53
" pywin32; sys_platform == 'win32'" ,
54
54
" setuptools>=70.0.0" ,
55
+ " locust-cloud>=1.18.0" ,
55
56
]
56
57
57
58
[project .urls ]
You can’t perform that action at this time.
0 commit comments