From 81dda9d626e55e7912833670c3cc88caed53d898 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 22 Nov 2024 17:23:41 +0000 Subject: [PATCH] Add command output to test failure message Signed-off-by: Brad Davidson --- tests/e2e/validatecluster/validatecluster_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/validatecluster/validatecluster_test.go b/tests/e2e/validatecluster/validatecluster_test.go index accae34dad..efc2003fd8 100644 --- a/tests/e2e/validatecluster/validatecluster_test.go +++ b/tests/e2e/validatecluster/validatecluster_test.go @@ -238,8 +238,8 @@ var _ = Describe("Verify Create", Ordered, func() { }, "420s", "2s").Should(Succeed()) cmd := "kubectl --kubeconfig=" + kubeConfigFile + " exec volume-test -- sh -c 'echo local-path-test > /data/test'" - _, err = e2e.RunCommand(cmd) - Expect(err).NotTo(HaveOccurred()) + res, err = e2e.RunCommand(cmd) + Expect(err).NotTo(HaveOccurred(), "failed cmd: "+cmd+" result: "+res) cmd = "kubectl delete pod volume-test --kubeconfig=" + kubeConfigFile res, err = e2e.RunCommand(cmd)