From: Zdenek Kabelac Date: Tue, 9 Oct 2012 08:37:37 +0000 (+0200) Subject: test: ignore modprobe failure X-Git-Tag: v2_02_98~97 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=f0d34f383df7a00902e8d0512a815fd764ee05a9;p=lvm2.git test: ignore modprobe failure If the system doesn't have modprobe but happens to have modules loaded, allow version testing. --- diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 107afc1b8..6cfd6db2a 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -506,7 +506,7 @@ wait_for_sync() { target_at_least() { case "$1" in - dm-*) modprobe "$1" ;; + dm-*) modprobe "$1" || true ;; esac local version=$(dmsetup targets 2>/dev/null | grep "${1##dm-} " 2>/dev/null)