diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-08-18 15:06:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-18 15:06:19 -0400 |
commit | fa206e11caf5af38ad47cbfebbe18046c562fb6d (patch) | |
tree | ef07c56ade783e9d9deab2ce8da79d3a92698ede /test/e2e/common_test.go | |
parent | 4ec227079011faef53e22b868d475a831b1f9e89 (diff) | |
parent | cd40c875ac51b32f7b4e5479d02faee14e0ab12d (diff) | |
download | podman-fa206e11caf5af38ad47cbfebbe18046c562fb6d.tar.gz podman-fa206e11caf5af38ad47cbfebbe18046c562fb6d.tar.bz2 podman-fa206e11caf5af38ad47cbfebbe18046c562fb6d.zip |
Merge pull request #11180 from baude/buildplaykube
Add ability to build images in play kube
Diffstat (limited to 'test/e2e/common_test.go')
-rw-r--r-- | test/e2e/common_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/common_test.go b/test/e2e/common_test.go index d03a2741b..6b97c4162 100644 --- a/test/e2e/common_test.go +++ b/test/e2e/common_test.go @@ -845,3 +845,18 @@ func (p *PodmanTestIntegration) buildImage(dockerfile, imageName string, layers output := session.OutputToStringArray() return output[len(output)-1] } + +func writeYaml(content string, fileName string) error { + f, err := os.Create(fileName) + if err != nil { + return err + } + defer f.Close() + + _, err = f.WriteString(content) + if err != nil { + return err + } + + return nil +} |