mirror of
https://github.com/containers/podman.git
synced 2025-05-19 16:18:51 +08:00
RHEL gating tests: skip some tests under runc
Manual cherrypick of (portions of) #14972, for tests that don't work under runc. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -474,9 +474,8 @@ spec:
|
|||||||
|
|
||||||
@test "pod resource limits" {
|
@test "pod resource limits" {
|
||||||
skip_if_remote "resource limits only implemented on non-remote"
|
skip_if_remote "resource limits only implemented on non-remote"
|
||||||
if is_rootless; then
|
skip_if_rootless "resource limits only work with root"
|
||||||
skip "only meaningful for rootful"
|
skip_if_cgroupsv1 "resource limits only meaningful on cgroups V2"
|
||||||
fi
|
|
||||||
|
|
||||||
local name1="resources1"
|
local name1="resources1"
|
||||||
run_podman --cgroup-manager=systemd pod create --name=$name1 --cpus=5 --memory=10m
|
run_podman --cgroup-manager=systemd pod create --name=$name1 --cpus=5 --memory=10m
|
||||||
|
@ -17,6 +17,10 @@ function teardown() {
|
|||||||
|
|
||||||
@test "podman-system-service containers survive service stop" {
|
@test "podman-system-service containers survive service stop" {
|
||||||
skip_if_remote "podman system service unavailable over remote"
|
skip_if_remote "podman system service unavailable over remote"
|
||||||
|
local runtime=$(podman_runtime)
|
||||||
|
if [[ "$runtime" != "crun" ]]; then
|
||||||
|
skip "survival code only implemented in crun; you're using $runtime"
|
||||||
|
fi
|
||||||
|
|
||||||
port=$(random_free_port)
|
port=$(random_free_port)
|
||||||
URL=tcp://127.0.0.1:$port
|
URL=tcp://127.0.0.1:$port
|
||||||
|
Reference in New Issue
Block a user