mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
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:
parent
b676bbbfc6
commit
27246d2bb6
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue