diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-12-17 18:08:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 18:08:36 +0100 |
commit | e6b843312b93ddaf99d0ef94a7e60ff66bc0eac8 (patch) | |
tree | 3135d30aaa577ea0c23b816bc946272f6ae8148d /test | |
parent | fab67f33930cf793d6780408406bc0305c70ff8f (diff) | |
parent | 225c7ae6c98300fc8d9536fa31c0ae9f8231c5c0 (diff) | |
download | podman-e6b843312b93ddaf99d0ef94a7e60ff66bc0eac8.tar.gz podman-e6b843312b93ddaf99d0ef94a7e60ff66bc0eac8.tar.bz2 podman-e6b843312b93ddaf99d0ef94a7e60ff66bc0eac8.zip |
Merge pull request #4643 from adrianreber/master
Correctly export the root file-system changes
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/checkpoint_test.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/e2e/checkpoint_test.go b/test/e2e/checkpoint_test.go index f208a4cf0..237223283 100644 --- a/test/e2e/checkpoint_test.go +++ b/test/e2e/checkpoint_test.go @@ -439,6 +439,18 @@ var _ = Describe("Podman checkpoint", func() { result.WaitWithDefaultTimeout() Expect(result.ExitCode()).To(Equal(0)) + result = podmanTest.Podman([]string{"exec", "-l", "/bin/sh", "-c", "rm /etc/motd"}) + result.WaitWithDefaultTimeout() + Expect(result.ExitCode()).To(Equal(0)) + + result = podmanTest.Podman([]string{"diff", "-l"}) + result.WaitWithDefaultTimeout() + Expect(result.ExitCode()).To(Equal(0)) + Expect(result.OutputToString()).To(ContainSubstring("C /etc")) + Expect(result.OutputToString()).To(ContainSubstring("A /test.output")) + Expect(result.OutputToString()).To(ContainSubstring("D /etc/motd")) + Expect(len(result.OutputToStringArray())).To(Equal(3)) + // Checkpoint the container result = podmanTest.Podman([]string{"container", "checkpoint", "-l", "-e", fileName}) result.WaitWithDefaultTimeout() @@ -462,6 +474,14 @@ var _ = Describe("Podman checkpoint", func() { Expect(result.ExitCode()).To(Equal(0)) Expect(result.OutputToString()).To(ContainSubstring("test" + cid + "test")) + result = podmanTest.Podman([]string{"diff", "-l"}) + result.WaitWithDefaultTimeout() + Expect(result.ExitCode()).To(Equal(0)) + Expect(result.OutputToString()).To(ContainSubstring("C /etc")) + Expect(result.OutputToString()).To(ContainSubstring("A /test.output")) + Expect(result.OutputToString()).To(ContainSubstring("D /etc/motd")) + Expect(len(result.OutputToStringArray())).To(Equal(3)) + // Remove exported checkpoint os.Remove(fileName) }) |