Skip to content

Commit 22a112d

Browse files
lilyLuLiucfergeau
authored andcommitted
[QE] fix not catch error for oc login,#4101
1 parent 77c0f1f commit 22a112d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/extended/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ func LoginToOcCluster(options []string) error {
269269
ocLoginAsAdminCommand = ocLoginAsAdminCommand + " " + option
270270
}
271271

272-
return ExecuteCommand(ocLoginAsAdminCommand)
272+
return ExecuteCommandSucceedsOrFails(ocLoginAsAdminCommand, "succeeds")
273273
}
274274

275275
// LoginToOcClusterSucceedsOrFails is a wrapper for LoginToOcCluster

0 commit comments

Comments
 (0)