summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-71.sh
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-30 14:47:48 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-30 22:10:05 +0200
commit27246d2bb6ae954465599298a3919cf47e597720 (patch)
tree638c82290e593d666886e52a46d9d3a56855f579 /test/units/testsuite-71.sh
parentTEST-46-HOMED: Check for sshd pam snippet in /usr/lib/pam.d as well (diff)
downloadsystemd-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-xtest/units/testsuite-71.sh3
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() {