diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-30 14:47:48 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-04-30 22:10:05 +0200 |
commit | 27246d2bb6ae954465599298a3919cf47e597720 (patch) | |
tree | 638c82290e593d666886e52a46d9d3a56855f579 /test/units/testsuite-71.sh | |
parent | TEST-46-HOMED: Check for sshd pam snippet in /usr/lib/pam.d as well (diff) | |
download | systemd-27246d2bb6ae954465599298a3919cf47e597720.tar.xz systemd-27246d2bb6ae954465599298a3919cf47e597720.zip |
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.
Diffstat (limited to '')
-rwxr-xr-x | test/units/testsuite-71.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/units/testsuite-71.sh b/test/units/testsuite-71.sh index 813a676c92..dc3f587ea3 100755 --- a/test/units/testsuite-71.sh +++ b/test/units/testsuite-71.sh @@ -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() { |