Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
sahithibanda01 committed Dec 22, 2023
1 parent b75e8c1 commit 60a170e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/runtime/runtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func executeRunTestStep(ctx context.Context, engine *engine.Engine, r *api.Start
step.Command = []string{cmd}
step.Entrypoint = r.RunTest.Entrypoint

if len(r.OutputVars) > 0 && len(step.Entrypoint) == 0 || len(step.Command) == 0 {
if (len(r.OutputVars) > 0 || len(r.Outputs) > 0) && len(step.Entrypoint) == 0 || len(step.Command) == 0 {
return nil, nil, nil, nil, fmt.Errorf("output variable should not be set for unset entrypoint or command")
}

Expand Down

0 comments on commit 60a170e

Please sign in to comment.