]> sourceware.org Git - lvm2.git/commitdiff
Do not make link in the real /dev
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 23 Oct 2011 15:40:15 +0000 (15:40 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Sun, 23 Oct 2011 15:40:15 +0000 (15:40 +0000)
Skip trying to make link when real /dev dir is used for test.

test/lib/aux.sh

index b8028bf358bac17ce66603398453d7af3468a037..5b1cc0333900cf08fd707a85fbf43007ac1ffd4a 100644 (file)
@@ -265,7 +265,7 @@ prepare_scsi_debug_dev()
     echo "$SCSI_DEBUG_DEV" > SCSI_DEBUG_DEV
     echo "$SCSI_DEBUG_DEV" > LOOP
     # Setting $LOOP provides means for prepare_devs() override
-    ln -snf $DEBUG_DEV $SCSI_DEBUG_DEV
+    test "$LVM_TEST_DEVDIR" != "/dev" && ln -snf $DEBUG_DEV $SCSI_DEBUG_DEV
     return 0
 }
 
This page took 0.031157 seconds and 5 git commands to generate.