From: Luca Boccassi Date: Sun, 26 Jul 2026 12:18:49 +0000 (+0100) Subject: test: udev might not be running in container, skip check in TEST-88-UPGRADE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5819bd3f5998116235e1ea83902e424a5ae4039;p=thirdparty%2Fsystemd.git test: udev might not be running in container, skip check in TEST-88-UPGRADE --- diff --git a/test/units/TEST-88-UPGRADE.sh b/test/units/TEST-88-UPGRADE.sh index 513eacab147..90443dd09c8 100755 --- a/test/units/TEST-88-UPGRADE.sh +++ b/test/units/TEST-88-UPGRADE.sh @@ -37,8 +37,13 @@ fi minor=$(systemctl --version | awk '/^systemd/{print$2}') networkd= resolved= +udev= unitscmd='systemctl list-units --failed *systemd*' +if command -v udevadm >/dev/null && systemctl is-active --quiet systemd-udevd.service; then + udev=1 +fi + if [[ $($unitscmd --output json | jq length) -gt 0 ]]; then echo 'Systemd failed units found before the test:' $unitscmd @@ -58,7 +63,7 @@ check_sd() { fail=1 fi - if command -v udevadm >/dev/null && ! udevadm control --ping --timeout=5; then + if [[ -n $udev ]] && ! udevadm control --ping --timeout=5; then echo 'Udev failed after the test!' fail=1 fi