summaryrefslogtreecommitdiff
path: root/test/e2e/systemd_test.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-06-10 17:01:41 -0400
committerGitHub <noreply@github.com>2021-06-10 17:01:41 -0400
commit0c38ac44efcaa83f98c727408fbba78456f9edd8 (patch)
tree8d483c3abfe676062f10fd6297ca7239f59d168e /test/e2e/systemd_test.go
parent6feaae699d70191071595716a383bbd48793a81a (diff)
parent3b6cb8fabb2695df6518ee598abb945044afc758 (diff)
downloadpodman-0c38ac44efcaa83f98c727408fbba78456f9edd8.tar.gz
podman-0c38ac44efcaa83f98c727408fbba78456f9edd8.tar.bz2
podman-0c38ac44efcaa83f98c727408fbba78456f9edd8.zip
Merge pull request #10609 from giuseppe/ignore-named-hierarchies
container: ignore named hierarchies
Diffstat (limited to 'test/e2e/systemd_test.go')
-rw-r--r--test/e2e/systemd_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/systemd_test.go b/test/e2e/systemd_test.go
index b132750b0..8dc14d5f7 100644
--- a/test/e2e/systemd_test.go
+++ b/test/e2e/systemd_test.go
@@ -6,6 +6,7 @@ import (
"strings"
"time"
+ "github.com/containers/podman/v3/pkg/rootless"
. "github.com/containers/podman/v3/test/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
@@ -115,6 +116,12 @@ WantedBy=multi-user.target
conData := result.InspectContainerToJSON()
Expect(len(conData)).To(Equal(1))
Expect(conData[0].Config.SystemdMode).To(BeTrue())
+
+ if CGROUPSV2 || !rootless.IsRootless() {
+ stats := podmanTest.Podman([]string{"stats", "--no-stream", ctrName})
+ stats.WaitWithDefaultTimeout()
+ Expect(stats.ExitCode()).To(Equal(0))
+ }
})
It("podman create container with systemd entrypoint triggers systemd mode", func() {