diff options
author | Adrian Reber <areber@redhat.com> | 2020-04-03 07:51:18 +0000 |
---|---|---|
committer | Adrian Reber <areber@redhat.com> | 2020-04-03 18:00:57 +0200 |
commit | 7660330ae22792d993d0b94c9be8417c7e848cb6 (patch) | |
tree | da35d4d63f076b09a72f9790efbe2d7ce0e6acc4 /test/e2e | |
parent | ccf0e0dd042d8a8d23dd0021ee267e7c9da9ff4a (diff) | |
download | podman-7660330ae22792d993d0b94c9be8417c7e848cb6.tar.gz podman-7660330ae22792d993d0b94c9be8417c7e848cb6.tar.bz2 podman-7660330ae22792d993d0b94c9be8417c7e848cb6.zip |
checkpoint: change runtime checkpoint support test
Podman was checking if the runtime support checkpointing by running
'runtime checkpoint -h'. That works for runc.
crun, however, does not use '-h, --help' for help output but, '-?,
--help'.
This commit switches both checkpoint support detection from
'runtime checkpoint -h'
to
'runtime checkpoint --help'.
Podman can now correctly detect if 'crun' also support checkpointing.
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/checkpoint_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/checkpoint_test.go b/test/e2e/checkpoint_test.go index 237223283..e6a3d2f7a 100644 --- a/test/e2e/checkpoint_test.go +++ b/test/e2e/checkpoint_test.go @@ -37,7 +37,7 @@ var _ = Describe("Podman checkpoint", func() { podmanTest.SeedImages() // Check if the runtime implements checkpointing. Currently only // runc's checkpoint/restore implementation is supported. - cmd := exec.Command(podmanTest.OCIRuntime, "checkpoint", "-h") + cmd := exec.Command(podmanTest.OCIRuntime, "checkpoint", "--help") if err := cmd.Start(); err != nil { Skip("OCI runtime does not support checkpoint/restore") } |