TEST-64-UDEV-STORAGE: skip multipath test if multipathd.service does not exist

Rather than checking os-release, but let's check if we have necessary
service unit.
This commit is contained in:
Yu Watanabe
2026-06-16 19:34:27 +01:00
committed by Luca Boccassi
parent c55c651cc0
commit 204c83e5bc
+2 -3
View File
@@ -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