mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
Merge pull request #17861 from edsantiago/bump_min_nfiles
New ulimit test: bump up minimum nfiles
This commit is contained in:
@ -1027,8 +1027,9 @@ EOF
|
|||||||
@test "podman run ulimit from containers.conf" {
|
@test "podman run ulimit from containers.conf" {
|
||||||
skip_if_remote "containers.conf has to be set on remote, only tested on E2E test"
|
skip_if_remote "containers.conf has to be set on remote, only tested on E2E test"
|
||||||
containersconf=$PODMAN_TMPDIR/containers.conf
|
containersconf=$PODMAN_TMPDIR/containers.conf
|
||||||
nofile1=$((RANDOM % 10000 + 5))
|
# Safe minimum: anything under 27 barfs w/ "crun: ... Too many open files"
|
||||||
nofile2=$((RANDOM % 10000 + 5))
|
nofile1=$((30 + RANDOM % 10000))
|
||||||
|
nofile2=$((30 + RANDOM % 10000))
|
||||||
cat >$containersconf <<EOF
|
cat >$containersconf <<EOF
|
||||||
[containers]
|
[containers]
|
||||||
default_ulimits = [
|
default_ulimits = [
|
||||||
|
Reference in New Issue
Block a user