1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

TEST-17-UDEV: Skip credentials test if service not loaded

It does not appear to exist on OpenSUSE yet.
This commit is contained in:
Richard Maw 2024-04-23 22:30:24 +01:00
parent 6e40124efb
commit 8ccba68cb5

View File

@ -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/*