From 980fb7182348f00da4d355ea3bb441ee456844a9 Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Mon, 30 Dec 2024 11:17:43 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20e2e=20-=20ensure=20that=20error?= =?UTF-8?q?=20from=20command=20is=20checked=20(#4452)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e2e - ensure that error from command is checked --- test/e2e/deployimage/plugin_cluster_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/e2e/deployimage/plugin_cluster_test.go b/test/e2e/deployimage/plugin_cluster_test.go index 7b2065e5304..28283b2197b 100644 --- a/test/e2e/deployimage/plugin_cluster_test.go +++ b/test/e2e/deployimage/plugin_cluster_test.go @@ -93,7 +93,8 @@ func Run(kbc *utils.TestContext) { By("deploying the controller-manager") cmd := exec.Command("make", "deploy", "IMG="+kbc.ImageName) - out, _ := kbc.Run(cmd) + out, err := kbc.Run(cmd) + Expect(err).NotTo(HaveOccurred()) Expect(string(out)).NotTo(ContainSubstring("Warning: would violate PodSecurity")) By("validating that the controller-manager pod is running as expected")