From f0d34f383df7a00902e8d0512a815fd764ee05a9 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 9 Oct 2012 10:37:37 +0200 Subject: [PATCH] test: ignore modprobe failure If the system doesn't have modprobe but happens to have modules loaded, allow version testing. --- test/lib/aux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)