@@ -87,10 +87,10 @@ class TestCommand : Callable<Int> {
87
87
private var shards: Int = 1
88
88
89
89
@Option(
90
- names = [" -b " , " --broadcast " ],
91
- description = [" Broadcasts all the tests across all running devices" ]
90
+ names = [" -r " , " --replicate " ],
91
+ description = [" Replicates all the tests across all running devices" ]
92
92
)
93
- private var broadcast : Boolean = false
93
+ private var replicate : Boolean = false
94
94
95
95
@Option(names = [" -c" , " --continuous" ])
96
96
private var continuous: Boolean = false
@@ -201,11 +201,11 @@ class TestCommand : Callable<Int> {
201
201
}.toMutableSet())
202
202
203
203
val availableDevices = if (deviceIds.isNotEmpty()) deviceIds.size else initialActiveDevices.size
204
- val effectiveShards = if (broadcast ) availableDevices else shards.coerceAtMost(plan.flowsToRun.size)
204
+ val effectiveShards = if (replicate ) availableDevices else shards.coerceAtMost(plan.flowsToRun.size)
205
205
val sharded = effectiveShards > 1
206
206
207
207
val chunkPlans =
208
- if (broadcast ) (0 until availableDevices).map { ExecutionPlan (plan.flowsToRun, plan.sequence) }
208
+ if (replicate ) (0 until availableDevices).map { ExecutionPlan (plan.flowsToRun, plan.sequence) }
209
209
else plan.flowsToRun
210
210
.withIndex()
211
211
.groupBy { it.index % effectiveShards }
@@ -221,7 +221,7 @@ class TestCommand : Callable<Int> {
221
221
222
222
// Collect device configurations for missing shards, if any
223
223
val missing = effectiveShards - availableDevices
224
- val allDeviceConfigs = if (! broadcast ) (0 until missing).map { shardIndex ->
224
+ val allDeviceConfigs = if (! replicate ) (0 until missing).map { shardIndex ->
225
225
PrintUtils .message(" ------------------ Shard ${shardIndex + 1 } ------------------" )
226
226
// Collect device configurations here, one per shard
227
227
PickDeviceView .requestDeviceOptions()
0 commit comments