Skip to content

Commit

Permalink
fix: move common part
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <vladislav@kubeshop.io>
  • Loading branch information
vsukhin committed Nov 12, 2024
1 parent a1f7045 commit 970d017
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmd/tcl/testworkflow-toolkit/commands/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,12 +400,13 @@ func NewExecuteCmd() *cobra.Command {
}
}

// Resolve the params
params, err := commontcl.GetParamsSpec(w.Matrix, w.Shards, w.Count, w.MaxCount, baseMachine)
if err != nil {
ui.Fail(errors.Wrap(err, "matrix and sharding"))
}

for _, testWorkflowName := range testWorkflowNames {
// Resolve the params
params, err := commontcl.GetParamsSpec(w.Matrix, w.Shards, w.Count, w.MaxCount, baseMachine)
if err != nil {
ui.Fail(errors.Wrap(err, "matrix and sharding"))
}
fmt.Printf("%s: %s\n", commontcl.ServiceLabel(testWorkflowName), params.Humanize())

// Create operations for each expected execution
Expand Down

0 comments on commit 970d017

Please sign in to comment.