Skip to content

Commit 59e6f23

Browse files
dustymabejbtrystram
authored andcommitted
tests/kola: fix early error in upgrade test
In some older versions of FCOS `systemctl status foo.service` would output an error if foo.service wasn't active. Let's account for this by adding an `|| true` so our script doesn't exit with an error here.
1 parent 7f21e35 commit 59e6f23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/kola/upgrade/extended/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,5 +389,7 @@ systemd-run -u refchanged \
389389
# While we wait, loop to show status of zincati and rpm-ostreed
390390
while true; do
391391
sleep 30
392-
systemctl status rpm-ostreed zincati --lines=0
392+
# Ignore error here. Older systemd (~F32) errors here if one of
393+
# the services isn't active.
394+
systemctl status rpm-ostreed zincati --lines=0 || true
393395
done

0 commit comments

Comments
 (0)