test/system/255-auto-update.bats: multiple services

Wait for all generated services to be ready to be sure we can iron out
race conditions.  Also disable rollbacks to make sure we can analyze
the error if restarting a service fails.  This information may be
crucial to understand the flakes on Debian as tracked in #17607.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
Valentin Rothberg
2023-03-14 10:30:32 +01:00
parent 40d0d233eb
commit 7a7af735ad

View File

@ -338,11 +338,13 @@ EOF
fi fi
done done
# Only check that the last service is started. Previous services should already be activated. # Make sure all services are ready.
_wait_service_ready container-$cname.service for cname in "${cnames[@]}"; do
_wait_service_ready container-$cname.service
done
run_podman commit --change CMD=/bin/bash $local_cname quay.io/libpod/localtest:latest run_podman commit --change CMD=/bin/bash $local_cname quay.io/libpod/localtest:latest
# Exit code is expected, due to invalid 'fakevalue' # Exit code is expected, due to invalid 'fakevalue'
run_podman 125 auto-update run_podman 125 auto-update --rollback=false
update_log=$output update_log=$output
is "$update_log" ".*invalid auto-update policy.*" "invalid policy setup" is "$update_log" ".*invalid auto-update policy.*" "invalid policy setup"
is "$update_log" ".*Error: invalid auto-update policy.*" "invalid policy setup" is "$update_log" ".*Error: invalid auto-update policy.*" "invalid policy setup"