]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-17-UDEV: Skip credentials test if service not loaded
authorRichard Maw <richard.maw@codethink.co.uk>
Tue, 23 Apr 2024 21:30:24 +0000 (22:30 +0100)
committerRichard Maw <richard.maw@codethink.co.uk>
Fri, 26 Apr 2024 16:22:10 +0000 (17:22 +0100)
It does not appear to exist on OpenSUSE yet.

test/units/testsuite-17.credentials.sh

index cbdc57037e135fc27421d1f7f6da8029d7236ff1..42d3883c3964bdc43b41fe9734c4d539f1ffbf05 100755 (executable)
@@ -4,6 +4,11 @@
 set -eux
 set -o pipefail
 
+if [[ $(systemctl is-enabled systemd-udev-load-credentials.service) == not-found ]]; then
+    echo "Missing systemd-udev-load-credentials.service" >>/skipped
+    exit 0
+fi
+
 at_exit() {
     rm -f /run/credstore/udev.*
     rm -f /run/udev/udev.conf.d/*