Skip to content

Commit c23c429

Browse files
authored
Revert "Make writing file via container in tests sync for real this time by enclosing multiple commands in quotes"
1 parent 53bb829 commit c23c429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/framework.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ func (f *Framework) WriteFileViaContainer(podName, containerName string, path st
478478
return fmt.Errorf("Unsupported character in string to write: %v", c)
479479
}
480480
}
481-
command := fmt.Sprintf("\"echo '%s' > '%s'; sync\"", contents, path)
481+
command := fmt.Sprintf("echo '%s' > '%s'; sync", contents, path)
482482
stdout, stderr, err := kubectlExecWithRetry(f.Namespace.Name, podName, containerName, "--", "/bin/sh", "-c", command)
483483
if err != nil {
484484
Logf("error running kubectl exec to write file: %v\nstdout=%v\nstderr=%v)", err, string(stdout), string(stderr))

0 commit comments

Comments
 (0)