1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

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.
This commit is contained in:
Dusty Mabe
2025-09-22 15:37:25 -04:00
committed by Jean-Baptiste Trystram
parent 7f21e359fd
commit 59e6f23ff4

View File

@@ -389,5 +389,7 @@ systemd-run -u refchanged \
# While we wait, loop to show status of zincati and rpm-ostreed
while true; do
sleep 30
systemctl status rpm-ostreed zincati --lines=0
# Ignore error here. Older systemd (~F32) errors here if one of
# the services isn't active.
systemctl status rpm-ostreed zincati --lines=0 || true
done