mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
255-auto-update.bats: turn off rollback where needed
To help debug #17607, turn off rollbacks for tests that do not require rollbacks. Error when restarting the systemd units are then not suppressed but returned which should give us more information about what is going on the Debian systems. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -171,7 +171,7 @@ function _confirm_update() {
|
|||||||
is "$output" ".* system auto-update"
|
is "$output" ".* system auto-update"
|
||||||
|
|
||||||
since=$(date --iso-8601=seconds)
|
since=$(date --iso-8601=seconds)
|
||||||
run_podman auto-update --format "{{.Unit}},{{.Image}},{{.Updated}},{{.Policy}}"
|
run_podman auto-update --rollback=false --format "{{.Unit}},{{.Image}},{{.Updated}},{{.Policy}}"
|
||||||
is "$output" "Trying to pull.*" "Image is updated."
|
is "$output" "Trying to pull.*" "Image is updated."
|
||||||
is "$output" ".*container-$cname.service,quay.io/libpod/alpine:latest,true,registry.*" "Image is updated."
|
is "$output" ".*container-$cname.service,quay.io/libpod/alpine:latest,true,registry.*" "Image is updated."
|
||||||
run_podman events --filter type=system --since $since --stream=false
|
run_podman events --filter type=system --since $since --stream=false
|
||||||
@ -248,7 +248,7 @@ function _confirm_update() {
|
|||||||
run_podman auto-update --dry-run --format "{{.Unit}},{{.Image}},{{.Updated}},{{.Policy}}"
|
run_podman auto-update --dry-run --format "{{.Unit}},{{.Image}},{{.Updated}},{{.Policy}}"
|
||||||
is "$output" ".*container-$cname.service,quay.io/libpod/localtest:latest,pending,local.*" "Image update is pending."
|
is "$output" ".*container-$cname.service,quay.io/libpod/localtest:latest,pending,local.*" "Image update is pending."
|
||||||
|
|
||||||
run_podman auto-update --format "{{.Unit}},{{.Image}},{{.Updated}},{{.Policy}}"
|
run_podman auto-update --rollback=false --format "{{.Unit}},{{.Image}},{{.Updated}},{{.Policy}}"
|
||||||
is "$output" ".*container-$cname.service,quay.io/libpod/localtest:latest,true,local.*" "Image is updated."
|
is "$output" ".*container-$cname.service,quay.io/libpod/localtest:latest,true,local.*" "Image is updated."
|
||||||
|
|
||||||
_confirm_update $cname $ori_image
|
_confirm_update $cname $ori_image
|
||||||
|
Reference in New Issue
Block a user