mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-05 00:15:44 +00:00
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 <rbranco@suse.de>
This commit is contained in:
parent
0eeff22607
commit
b77531879b
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue