From 779100c6a8ef5148993f1ef91c523af851309fd6 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Mon, 11 Nov 2024 19:32:32 +0300 Subject: [PATCH] fix: exit on error code Signed-off-by: Vladislav Sukhin --- cmd/kubectl-testkube/commands/testworkflows/run.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/kubectl-testkube/commands/testworkflows/run.go b/cmd/kubectl-testkube/commands/testworkflows/run.go index 12cc026901..f9d58be000 100644 --- a/cmd/kubectl-testkube/commands/testworkflows/run.go +++ b/cmd/kubectl-testkube/commands/testworkflows/run.go @@ -164,7 +164,9 @@ func NewRunTestWorkflowCmd() *cobra.Command { uiShellGetExecution(execution.Id) } - os.Exit(exitCode) + if exitCode != 0 { + os.Exit(exitCode) + } } }, }