]> sourceware.org Git - lvm2.git/commitdiff
Allow overwrite for VERIFY_UDEV
authorZdenek Kabelac <zkabelac@redhat.com>
Sat, 24 Sep 2011 21:15:13 +0000 (21:15 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Sat, 24 Sep 2011 21:15:13 +0000 (21:15 +0000)
When running tests it might be useful to have an override option when
testing on real /dev  and some broken system (i.e. Debian and its rules).

So one can use:

LVM_TEST_DEVDIR=/dev LVM_VERIFY_UDEV=1 make check

test/lib/aux.sh

index 7ef20b936b0630157b6ae8b6fe7b93dcb467aa9f..b8028bf358bac17ce66603398453d7af3468a037 100644 (file)
@@ -371,9 +371,9 @@ prepare_vg() {
 lvmconf() {
     if test -z "$LVM_TEST_LOCKING"; then LVM_TEST_LOCKING=1; fi
     if test "$DM_DEV_DIR" = "/dev"; then
-       VERIFY_UDEV=0;
+       LVM_VERIFY_UDEV=${LVM_VERIFY_UDEV:-0};
     else
-       VERIFY_UDEV=1;
+       LVM_VERIFY_UDEV=${LVM_VERIFY_UDEV:-1};
     fi
     test -f CONFIG_VALUES || {
         cat > CONFIG_VALUES <<-EOF
@@ -401,7 +401,7 @@ global/fallback_to_local_locking = 0
 activation/checks = 1
 activation/udev_sync = 1
 activation/udev_rules = 1
-activation/verify_udev_operations = $VERIFY_UDEV
+activation/verify_udev_operations = $LVM_VERIFY_UDEV
 activation/polling_interval = 0
 activation/snapshot_autoextend_percent = 50
 activation/snapshot_autoextend_threshold = 50
This page took 0.032626 seconds and 5 git commands to generate.