From eec9d650457e67e754cb1ec632d5f3a6435d0427 Mon Sep 17 00:00:00 2001 From: Camila Macedo <7708031+camilamacedo86@users.noreply.github.com> Date: Mon, 30 Dec 2024 09:54:08 +0000 Subject: [PATCH] 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")