TEST-71-HOSTNAME: Ignore error from reset-failed

On OpenSUSE the systemd-hostnamed does not fail and is unloaded which
causes reset-failed to fail. So let's ignore any errors from reset-failed
to make the test more robust.
This commit is contained in:
Daan De Meyer 2024-04-30 14:47:48 +02:00
parent b676bbbfc6
commit 27246d2bb6

View file

@ -63,7 +63,8 @@ get_chassis() (
stop_hostnamed() {
systemctl stop systemd-hostnamed.service
systemctl reset-failed systemd-hostnamed # reset trigger limit
# Reset trigger limit. This might fail if the unit was unloaded already, so ignore any errors.
systemctl reset-failed systemd-hostnamed || :
}
testcase_chassis() {