diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-16 04:28:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 04:28:14 -0400 |
commit | 4c88035f09474a80264400aa825509900100e32e (patch) | |
tree | 314a55db07ba9de6e49a8b78d2a1a6d57b867351 /test | |
parent | b82ae19acffca14ff828b3b6d2ff851ada5c0577 (diff) | |
parent | 6bec101041abba77329a7e04a329ab9792f7e1aa (diff) | |
download | podman-4c88035f09474a80264400aa825509900100e32e.tar.gz podman-4c88035f09474a80264400aa825509900100e32e.tar.bz2 podman-4c88035f09474a80264400aa825509900100e32e.zip |
Merge pull request #10021 from zhangguanzhang/invalid-save-expression
Fix invalid expression in save command
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/save_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/e2e/save_test.go b/test/e2e/save_test.go index 5ddd5efc8..42ee7440b 100644 --- a/test/e2e/save_test.go +++ b/test/e2e/save_test.go @@ -111,6 +111,24 @@ var _ = Describe("Podman save", func() { Expect(save.ExitCode()).To(Equal(0)) }) + It("podman save to directory with --compress but not use docker-dir and oci-dir", func() { + if rootless.IsRootless() && podmanTest.RemoteTest { + Skip("Requires a fix in containers image for chown/lchown") + } + outdir := filepath.Join(podmanTest.TempDir, "save") + + save := podmanTest.Podman([]string{"save", "--compress", "--format", "docker-archive", "-o", outdir, ALPINE}) + save.WaitWithDefaultTimeout() + // should not be 0 + Expect(save.ExitCode()).ToNot(Equal(0)) + + save = podmanTest.Podman([]string{"save", "--compress", "--format", "oci-archive", "-o", outdir, ALPINE}) + save.WaitWithDefaultTimeout() + // should not be 0 + Expect(save.ExitCode()).ToNot(Equal(0)) + + }) + It("podman save bad filename", func() { outdir := filepath.Join(podmanTest.TempDir, "save:colon") |