diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-07-13 20:53:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 20:53:20 +0200 |
commit | d86acf2caea68d1dbf349c54d0532b3ce92dcb85 (patch) | |
tree | 3191375b0465096dfb1e26a26d9faaa09c0d90ac /test/e2e/run_test.go | |
parent | e2a8e037d1c3a2176cd15493812bf165faea63f2 (diff) | |
parent | 677ad10e0756212bf4fbbed2797d2c110aaa8374 (diff) | |
download | podman-d86acf2caea68d1dbf349c54d0532b3ce92dcb85.tar.gz podman-d86acf2caea68d1dbf349c54d0532b3ce92dcb85.tar.bz2 podman-d86acf2caea68d1dbf349c54d0532b3ce92dcb85.zip |
Merge pull request #6842 from rhatdan/pids-limit
Pids-limit should only be set if the user set it
Diffstat (limited to 'test/e2e/run_test.go')
-rw-r--r-- | test/e2e/run_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 6cbedb457..9d48f1540 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -1072,4 +1072,13 @@ USER mail` Expect(session.OutputToString()).To(ContainSubstring(h)) }) + + It("podman run verify pids-limit", func() { + SkipIfCgroupV1() + limit := "4321" + session := podmanTest.Podman([]string{"run", "--pids-limit", limit, "--rm", ALPINE, "cat", "/sys/fs/cgroup/pids.max"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(ContainSubstring(limit)) + }) }) |