Skip to content

Commit 02fdc33

Browse files
committed
feat: return error when liqoctl network fails
1 parent 983e9a9 commit 02fdc33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/liqoctl/test/network/check/check.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ func RunChecks(ctx context.Context, cl *client.Client, cfg client.Configs, opts
118118
logger.Info("All checks completed")
119119
PrintCheckResults(successCountTot, errorCountTot, logger)
120120

121+
if errorCountTot > 0 {
122+
return fmt.Errorf("some checks failed")
123+
}
121124
return nil
122125
}
123126

0 commit comments

Comments
 (0)