Merge pull request #28539 from cevich/fix_remove_logs_restarted

[v4.2.0-rhel] Fix system test: podman logs restarted journald
This commit is contained in:
Tom Sweeney 2026-04-17 15:17:10 -04:00 committed by GitHub
commit e5c6cbda6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -120,6 +120,9 @@ ${cid[0]} d" "Sequential output from logs"
function _log_test_restarted() { function _log_test_restarted() {
local driver=$1 local driver=$1
local events_backend=$(_additional_events_backend $driver) local events_backend=$(_additional_events_backend $driver)
if [[ -n "${events_backend}" ]]; then
skip_if_remote "remote does not support --events-backend"
fi
run_podman run --log-driver=$driver ${events_backend} --name logtest $IMAGE sh -c 'start=0; if test -s log; then start=`tail -n 1 log`; fi; seq `expr $start + 1` `expr $start + 10` | tee -a log' run_podman run --log-driver=$driver ${events_backend} --name logtest $IMAGE sh -c 'start=0; if test -s log; then start=`tail -n 1 log`; fi; seq `expr $start + 1` `expr $start + 10` | tee -a log'
# FIXME: #9597 # FIXME: #9597
# run/start is flaking for remote so let's wait for the container condition # run/start is flaking for remote so let's wait for the container condition