diff options
author | Hironori Shiina <shiina.hironori@jp.fujitsu.com> | 2021-07-30 15:36:34 -0400 |
---|---|---|
committer | Hironori Shiina <shiina.hironori@jp.fujitsu.com> | 2021-07-30 21:16:36 -0400 |
commit | 9d33abac657fca66392e22a56a6d021173041b16 (patch) | |
tree | e01174b11c1cc4978f299f91b9eae65642379bf7 | |
parent | aaf02cfbd41e7d7fbd009a4f01a0fa45b3e49f61 (diff) | |
download | podman-9d33abac657fca66392e22a56a6d021173041b16.tar.gz podman-9d33abac657fca66392e22a56a6d021173041b16.tar.bz2 podman-9d33abac657fca66392e22a56a6d021173041b16.zip |
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>
-rw-r--r-- | test/system/255-auto-update.bats | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/system/255-auto-update.bats b/test/system/255-auto-update.bats index 25eaba45b..6fb40f41e 100644 --- a/test/system/255-auto-update.bats +++ b/test/system/255-auto-update.bats @@ -261,7 +261,8 @@ EOF systemctl enable --now podman-auto-update-$cname.timer 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 count=0 while [ $count -lt 120 ]; do |