From c91cd9929129d922e216fcded1c4290b1c1e54da Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Sat, 21 Mar 2026 21:43:37 +0100 Subject: [PATCH] test: relax rootless runc pid namespace assertion runc may or may not issue a warning here. https://github.com/opencontainers/runc/issues/4732 Signed-off-by: Ricardo Branco (cherry picked from commit b77531879b8e16590176f3868a18d76533445487) Signed-off-by: Paul Holzinger --- test/system/195-run-namespaces.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/system/195-run-namespaces.bats b/test/system/195-run-namespaces.bats index 230669d15b..fadcbb60dd 100644 --- a/test/system/195-run-namespaces.bats +++ b/test/system/195-run-namespaces.bats @@ -41,7 +41,7 @@ uts | uts if [[ "$option" = "pid" ]] && is_rootless && ! is_remote && [[ "$(podman_runtime)" = "runc" ]]; then # Replace "pid:[1234567]" with "pid:\[1234567\]" con1_ns_esc="${con1_ns//[\[\]]/\\&}" - assert "$con2_ns" =~ "${con1_ns_esc}.*warning .*" "($name) namespace matches (type: $type)" + assert "$con2_ns" =~ "${con1_ns_esc}" "($name) namespace matches (type: $type)" else assert "$con1_ns" == "$con2_ns" "($name) namespace matches (type: $type)" fi