mirror of
https://github.com/containers/podman.git
synced 2025-12-05 12:52:12 +08:00
Our aarch64 CI system uses 172.31.0.0/20. Because I was (and am) lazy, my random_rfc1918_subnet() helper was only checking /24. This causes flakes. Solution is to actually do it right: binary arithmetic, prefix matching. This is effectively impossible in bash, so, use a hairy perl helper and add copious tests. Fixes: #18693 Signed-off-by: Ed Santiago <santiago@redhat.com>
14 KiB
Executable File
14 KiB
Executable File