diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-07-22 14:04:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 14:04:52 +0200 |
commit | 99bf6f96cd93867813e72742c484ab0abf15cca4 (patch) | |
tree | 6eb68a187f64d8947fa5a6d4a8a55c63cada49d9 /test/e2e/info_test.go | |
parent | 02eb057920cfd2542518497522f800f54a42643f (diff) | |
parent | 0a160fed77c753d1d5683ad40285bb41f1c895d5 (diff) | |
download | podman-99bf6f96cd93867813e72742c484ab0abf15cca4.tar.gz podman-99bf6f96cd93867813e72742c484ab0abf15cca4.tar.bz2 podman-99bf6f96cd93867813e72742c484ab0abf15cca4.zip |
Merge pull request #14972 from edsantiago/ubuntu_cgroups_v1
Bump VMs, to Ubuntu 2204 with cgroups v1
Diffstat (limited to 'test/e2e/info_test.go')
-rw-r--r-- | test/e2e/info_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/info_test.go b/test/e2e/info_test.go index 2c2c82cb6..9d31deb55 100644 --- a/test/e2e/info_test.go +++ b/test/e2e/info_test.go @@ -152,4 +152,19 @@ var _ = Describe("Podman Info", func() { Expect(session.OutputToString()).To(ContainSubstring("memory")) Expect(session.OutputToString()).To(ContainSubstring("pids")) }) + + It("Podman info: check desired runtime", func() { + // defined in .cirrus.yml + want := os.Getenv("CI_DESIRED_RUNTIME") + if want == "" { + if os.Getenv("CIRRUS_CI") == "" { + Skip("CI_DESIRED_RUNTIME is not set--this is OK because we're not running under Cirrus") + } + Fail("CIRRUS_CI is set, but CI_DESIRED_RUNTIME is not! See #14912") + } + session := podmanTest.Podman([]string{"info", "--format", "{{.Host.OCIRuntime.Name}}"}) + session.WaitWithDefaultTimeout() + Expect(session).To(Exit(0)) + Expect(session.OutputToString()).To(Equal(want)) + }) }) |