diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-25 11:59:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 11:59:09 +0100 |
commit | 12f73d5f88d8646058bbb4e673b04b413732dbe2 (patch) | |
tree | 479aaf581154a1b9b8fffa8f45473aa11e45929d /test | |
parent | 93138541f3119b81c170e5ce904a8c4e6cece842 (diff) | |
parent | e648122b2986ea3bdcee33ebaef8731e574e8f54 (diff) | |
download | podman-12f73d5f88d8646058bbb4e673b04b413732dbe2.tar.gz podman-12f73d5f88d8646058bbb4e673b04b413732dbe2.tar.bz2 podman-12f73d5f88d8646058bbb4e673b04b413732dbe2.zip |
Merge pull request #12403 from giuseppe/improve-cgroup-detection
libpod: improve heuristic to detect cgroup
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/systemd_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/e2e/systemd_test.go b/test/e2e/systemd_test.go index 98def3d8f..32c2cd1b8 100644 --- a/test/e2e/systemd_test.go +++ b/test/e2e/systemd_test.go @@ -109,6 +109,11 @@ WantedBy=multi-user.target stats := podmanTest.Podman([]string{"stats", "--no-stream", ctrName}) stats.WaitWithDefaultTimeout() Expect(stats).Should(Exit(0)) + + cgroupPath := podmanTest.Podman([]string{"inspect", "--format='{{.State.CgroupPath}}'", ctrName}) + cgroupPath.WaitWithDefaultTimeout() + Expect(cgroupPath).Should(Exit(0)) + Expect(result.OutputToString()).To(Not(ContainSubstring("init.scope"))) }) It("podman create container with systemd entrypoint triggers systemd mode", func() { |