]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-64-UDEV-STORAGE: skip multipath test if multipathd.service does not exist
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Jun 2026 14:58:44 +0000 (23:58 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 16 Jun 2026 18:34:27 +0000 (19:34 +0100)
Rather than checking os-release, but let's check if we have necessary
service unit.

test/units/TEST-64-UDEV-STORAGE.sh

index 97c0bf360cd873ea8f1a1c89fdc907d95ea5a89c..afab7d4ff4bb3b7ccd00970b37cbd682fb8f9f70 100755 (executable)
@@ -266,9 +266,8 @@ EOF
 testcase_multipath_basic_failover() {
     local dmpath i path wwid
 
-    . /etc/os-release
-    if [[ "${ID_LIKE:-}" == "alpine" ]]; then
-        echo "multipath on alpine/postmarketos is broken, skipping the test" | tee --append /skipped
+    if ! systemctl list-unit-files multipathd.service >/dev/null; then
+        echo "This test requires multipathd.service but it is not installed, skipping ..." | tee --append /skipped
         exit 77
     fi