From cfcac1737b412706963dc67a75134f458e8b52ab Mon Sep 17 00:00:00 2001 From: Tomas Nozicka Date: Wed, 30 Jan 2019 11:46:30 +0100 Subject: [PATCH] Enhance debuggability of e2e tests using exec command --- test/e2e/framework/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 4c60c3e3173..f5b45484e44 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -3407,7 +3407,7 @@ func NewHostExecPodSpec(ns, name string) *v1.Pod { // RunHostCmd runs the given cmd in the context of the given pod using `kubectl exec` // inside of a shell. func RunHostCmd(ns, name, cmd string) (string, error) { - return RunKubectl("exec", fmt.Sprintf("--namespace=%v", ns), name, "--", "/bin/sh", "-c", cmd) + return RunKubectl("exec", fmt.Sprintf("--namespace=%v", ns), name, "--", "/bin/sh", "-x", "-c", cmd) } // RunHostCmdOrDie calls RunHostCmd and dies on error.