summaryrefslogtreecommitdiff
path: root/test/utils/podmantest_test.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-11-02 12:51:10 +0100
committerMatthew Heon <matthew.heon@pm.me>2021-11-12 11:08:25 -0500
commitdd6551055a39eb338cdcc8691436aabc0aabf62d (patch)
tree50e495cbcc3ab244eefbc2d4ce31b0d980406282 /test/utils/podmantest_test.go
parentdf9e0fdcb055412d066cb240575cdf013ae281d8 (diff)
downloadpodman-dd6551055a39eb338cdcc8691436aabc0aabf62d.tar.gz
podman-dd6551055a39eb338cdcc8691436aabc0aabf62d.tar.bz2
podman-dd6551055a39eb338cdcc8691436aabc0aabf62d.zip
test: run --cgroups=split in new cgroup
the --cgroups=split test changes the current cgroup as it creates a sub-cgroup. This can cause a race condition in tests that are reading the current cgroup. Closes: https://github.com/containers/podman/issues/11191 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/utils/podmantest_test.go')
-rw-r--r--test/utils/podmantest_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils/podmantest_test.go b/test/utils/podmantest_test.go
index 9bd1c4a66..1bb9ecb6b 100644
--- a/test/utils/podmantest_test.go
+++ b/test/utils/podmantest_test.go
@@ -23,7 +23,7 @@ var _ = Describe("PodmanTest test", func() {
FakeOutputs["check"] = []string{"check"}
os.Setenv("HOOK_OPTION", "hook_option")
env := os.Environ()
- session := podmanTest.PodmanAsUserBase([]string{"check"}, 1000, 1000, "", env, true, false, nil)
+ session := podmanTest.PodmanAsUserBase([]string{"check"}, 1000, 1000, "", env, true, false, nil, nil)
os.Unsetenv("HOOK_OPTION")
session.WaitWithDefaultTimeout()
Expect(session.Command.Process).ShouldNot(BeNil())