diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-23 13:16:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 13:16:10 +0100 |
commit | fbdfd55e2d58484edd2e56b85f50086746e80314 (patch) | |
tree | 59209932c32836b968966cb2f72e66acbb8ce8a3 /test/e2e | |
parent | 1b9a5964dbb25f8c3cf2b530ffba52325cc81678 (diff) | |
parent | d669dbfb9fbb4bae56ba90ce9b58352c793eff6e (diff) | |
download | podman-fbdfd55e2d58484edd2e56b85f50086746e80314.tar.gz podman-fbdfd55e2d58484edd2e56b85f50086746e80314.tar.bz2 podman-fbdfd55e2d58484edd2e56b85f50086746e80314.zip |
Merge pull request #12672 from adrianreber/2021-12-21-check-for-memtrack
Error out early if system does not support pre-copy checkpointing
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/checkpoint_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/e2e/checkpoint_test.go b/test/e2e/checkpoint_test.go index e97503337..4771f8e58 100644 --- a/test/e2e/checkpoint_test.go +++ b/test/e2e/checkpoint_test.go @@ -939,6 +939,9 @@ var _ = Describe("Podman checkpoint", func() { }) It("podman checkpoint container with --pre-checkpoint", func() { + if !criu.MemTrack() { + Skip("system (architecture/kernel/CRIU) does not support memory tracking") + } if !strings.Contains(podmanTest.OCIRuntime, "runc") { Skip("Test only works on runc 1.0-rc3 or higher.") } @@ -972,6 +975,9 @@ var _ = Describe("Podman checkpoint", func() { It("podman checkpoint container with --pre-checkpoint and export (migration)", func() { SkipIfRemote("--import-previous is not yet supported on the remote client") + if !criu.MemTrack() { + Skip("system (architecture/kernel/CRIU) does not support memory tracking") + } if !strings.Contains(podmanTest.OCIRuntime, "runc") { Skip("Test only works on runc 1.0-rc3 or higher.") } |