From 22a112d200da3dd1b66c8415ededdb95a4abe9e5 Mon Sep 17 00:00:00 2001 From: lilyLuLiu Date: Tue, 2 Jul 2024 09:55:42 +0800 Subject: [PATCH] [QE] fix not catch error for oc login,https://github.com/crc-org/crc/issues/4101 --- test/extended/util/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/extended/util/util.go b/test/extended/util/util.go index f717e06ead..f251a7b932 100644 --- a/test/extended/util/util.go +++ b/test/extended/util/util.go @@ -269,7 +269,7 @@ func LoginToOcCluster(options []string) error { ocLoginAsAdminCommand = ocLoginAsAdminCommand + " " + option } - return ExecuteCommand(ocLoginAsAdminCommand) + return ExecuteCommandSucceedsOrFails(ocLoginAsAdminCommand, "succeeds") } // LoginToOcClusterSucceedsOrFails is a wrapper for LoginToOcCluster