diff --git a/core/opl/args.py b/core/opl/args.py index d63b61a..84b1372 100644 --- a/core/opl/args.py +++ b/core/opl/args.py @@ -324,6 +324,7 @@ def add_locust_opts(parser): ) parser.add_argument( "--test-requests", + dest="test_requests", type=int, default=os.getenv("TEST_REQUESTS", 0), help="Number of requests - if non-0, this overrides test duration (also use env variable TEST_REQUESTS)", diff --git a/opl/args.py b/opl/args.py index d63b61a..84b1372 100644 --- a/opl/args.py +++ b/opl/args.py @@ -324,6 +324,7 @@ def add_locust_opts(parser): ) parser.add_argument( "--test-requests", + dest="test_requests", type=int, default=os.getenv("TEST_REQUESTS", 0), help="Number of requests - if non-0, this overrides test duration (also use env variable TEST_REQUESTS)",