无法覆盖金牛座中的 execution.iterations
Cannot override execution.iterations in taurus
这是我试图通过 cli 覆盖的配置:
execution:
- concurrency: 1
iterations: 20
hold-for: 0s
ramp-up: 0s
scenario: delete
scenarios:
delete:
...
当我尝试 bzt ./myconfig.yml -o execution.iterations=100
时,出现以下错误
14:25:35 ERROR: Failed to apply override execution.iterations=100
14:25:35 ERROR: TypeError: '<' not supported between instances of 'str' and 'int'
我也试过引用它,即。 "100"
,加上小数,即100.0
,都返回同样的错误。覆盖整数的正确方法是什么?
您可能需要指定特定的(第一次?)执行。这是我们对类似参数所做的:
...
-o execution.0.concurrency=${concurrency} \
-o execution.0.hold-for=${holdfor} \
-o execution.0.ramp-up=${rampup} \
...
您可能需要对迭代执行相同的操作:
-o execution.0.iterations=100
这是我试图通过 cli 覆盖的配置:
execution:
- concurrency: 1
iterations: 20
hold-for: 0s
ramp-up: 0s
scenario: delete
scenarios:
delete:
...
当我尝试 bzt ./myconfig.yml -o execution.iterations=100
时,出现以下错误
14:25:35 ERROR: Failed to apply override execution.iterations=100
14:25:35 ERROR: TypeError: '<' not supported between instances of 'str' and 'int'
我也试过引用它,即。 "100"
,加上小数,即100.0
,都返回同样的错误。覆盖整数的正确方法是什么?
您可能需要指定特定的(第一次?)执行。这是我们对类似参数所做的:
...
-o execution.0.concurrency=${concurrency} \
-o execution.0.hold-for=${holdfor} \
-o execution.0.ramp-up=${rampup} \
...
您可能需要对迭代执行相同的操作:
-o execution.0.iterations=100