test/system: do not run "podman pause/unpause" in parallel

podman ps -a causes unexpected timing delays as it tries to take locks for
all containers and parallel tests may cause it to block for a while.

In CI logs I see ps -a take over 3 seconds which is enough to mess with
the expect time and make the test fail. Since testing the ps -a output
as part of the test just switch the test to not run in parallel.

This failed with "delta t between paused and restarted" where it took 10
seconds instead of the max expected 6 seconds.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger 2026-05-27 12:20:40 +02:00
parent 90ba6562d5
commit b498cefd5c
No known key found for this signature in database
GPG key ID: EB145DD938A3CAF2

View file

@ -6,7 +6,9 @@
load helpers
load helpers.systemd
# bats test_tags=ci:parallel
# SHOULD NOT BE PARALLELIZED! The use of podman ps -a makes it timing sensitive
# as this command takes locks of all containers and parallel containers may
# block for a while.
@test "podman pause/unpause" {
if is_rootless && ! is_cgroupsv2; then
skip "'podman pause' (rootless) only works with cgroups v2"