From c23c4296d1cc935da58533fc12b90573f76ce460 Mon Sep 17 00:00:00 2001 From: David Zhu Date: Mon, 4 Nov 2019 11:26:34 -0800 Subject: [PATCH] Revert "Make writing file via container in tests sync for real this time by enclosing multiple commands in quotes" --- test/e2e/framework/framework.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/framework.go b/test/e2e/framework/framework.go index 2ce4af608e9..b84909c5a24 100644 --- a/test/e2e/framework/framework.go +++ b/test/e2e/framework/framework.go @@ -478,7 +478,7 @@ func (f *Framework) WriteFileViaContainer(podName, containerName string, path st return fmt.Errorf("Unsupported character in string to write: %v", c) } } - command := fmt.Sprintf("\"echo '%s' > '%s'; sync\"", contents, path) + command := fmt.Sprintf("echo '%s' > '%s'; sync", contents, path) stdout, stderr, err := kubectlExecWithRetry(f.Namespace.Name, podName, containerName, "--", "/bin/sh", "-c", command) if err != nil { Logf("error running kubectl exec to write file: %v\nstdout=%v\nstderr=%v)", err, string(stdout), string(stderr))