diff options
author | zhangguanzhang <zhangguanzhang@qq.com> | 2021-04-14 12:55:45 +0800 |
---|---|---|
committer | zhangguanzhang <zhangguanzhang@qq.com> | 2021-04-14 17:32:48 +0800 |
commit | 6bec101041abba77329a7e04a329ab9792f7e1aa (patch) | |
tree | 03a17ba843ad2a52fcb76dc36a0a52ef79232b0b /test/e2e/save_test.go | |
parent | 4a22d6117aeb2f2b9fa120328bba857f7fd54d47 (diff) | |
download | podman-6bec101041abba77329a7e04a329ab9792f7e1aa.tar.gz podman-6bec101041abba77329a7e04a329ab9792f7e1aa.tar.bz2 podman-6bec101041abba77329a7e04a329ab9792f7e1aa.zip |
Fixes invalid expression in save command
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'test/e2e/save_test.go')
-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") |