This is an automated email from the ASF dual-hosted git repository.
janhoy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-orbit.git
The following commit(s) were added to refs/heads/main by this push:
new ed357fd7 Fix --test-iterations=1 silently running nothing (#102)
ed357fd7 is described below
commit ed357fd7f0637be1a9b1032044745cf50e1f8065
Author: Jan Høydahl <[email protected]>
AuthorDate: Thu Oct 15 08:18:18 2026 +0100
Fix --test-iterations=1 silently running nothing (#102)
---
solrorbit/benchmark.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/solrorbit/benchmark.py b/solrorbit/benchmark.py
index e85a142b..89e92e2d 100644
--- a/solrorbit/benchmark.py
+++ b/solrorbit/benchmark.py
@@ -741,6 +741,7 @@ def create_arg_parser():
default=workload.loader.QueryRandomizerWorkloadProcessor.DEFAULT_ALPHA)
test_run_parser.add_argument(
"--test-iterations",
+ type=positive_number,
help="The number of times to run the workload (default: 1).",
default=1)
test_run_parser.add_argument(
@@ -1272,7 +1273,7 @@ def dispatch_sub_command(arg_parser, args, cfg):
test_runs_dict = prepare_test_runs_dict(args, cfg)
aggregator_instance = aggregator.Aggregator(cfg,
test_runs_dict, args)
aggregator_instance.aggregate()
- elif args.test_iterations == 1:
+ elif iterations == 1:
configure_test(arg_parser, args, cfg)
run_test(cfg, args.kill_running_processes)
else: