]> sourceware.org Git - lvm2.git/commitdiff
test: ignore modprobe failure
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 9 Oct 2012 08:37:37 +0000 (10:37 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 9 Oct 2012 08:37:37 +0000 (10:37 +0200)
If the system doesn't have modprobe but happens to have modules
loaded, allow version testing.

test/lib/aux.sh

index 107afc1b8125f306c0a6ad4d301e79f66a7ce4b3..6cfd6db2a6373f789ba3ee0928e977c9abeb3c72 100644 (file)
@@ -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)
This page took 0.040444 seconds and 5 git commands to generate.