mirror of
https://github.com/containers/podman.git
synced 2025-07-31 04:12:40 +08:00
Fix auto-update system test for older systemd
If the systemd version is older than v245, the systemd uses 'Started' when a oneshot service finishes. In systemd, the change was done at: https://github.com/systemd/systemd/pull/14851 commit-id: eda0cbf07186d16a160bd1d810613586fdbdf587 Signed-off-by: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
This commit is contained in:
@ -261,7 +261,8 @@ EOF
|
|||||||
systemctl enable --now podman-auto-update-$cname.timer
|
systemctl enable --now podman-auto-update-$cname.timer
|
||||||
systemctl list-timers --all
|
systemctl list-timers --all
|
||||||
|
|
||||||
local expect='Finished Podman auto-update testing service'
|
# While systemd v245 and later uses 'Finished', older versions uses 'Started' for oneshot services
|
||||||
|
local expect='(Finished|Started) Podman auto-update testing service'
|
||||||
local failed_start=failed
|
local failed_start=failed
|
||||||
local count=0
|
local count=0
|
||||||
while [ $count -lt 120 ]; do
|
while [ $count -lt 120 ]; do
|
||||||
|
Reference in New Issue
Block a user