Skip to contentSkip to conversation

master - tests: proper /dev access

PATCH Zdenek Kabelac 1 participant 1 message Aug 20, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=473a4a65485d881edfb2220a2e8f3d4fbf228818
Commit:        473a4a65485d881edfb2220a2e8f3d4fbf228818
Parent:        8d00499167f010b82ea6ddebcc6b22ec170002f9
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Aug 20 14:35:57 2014 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Aug 20 14:37:41 2014 +0200

tests: proper /dev access

Commit 5ebff6cc9f631b7409d99b72fa0b39ccec30bf1f seemed to introduce new 'for' loop but the mode is not yet used.
But the access to /dev dir needs to go through $DM_DEV_DIR and whole path needs to be in "".

---
 test/shell/pvmove-restart.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
test/shell/pvmove-restart.sh +2 -1
index f480aaa..dde7308 100644
@@ -39,8 +39,9 @@ kill -9 $PVMOVE
 wait
 
 # Simulate reboot - forcibly remove related devices
+dmsetup table
 dmsetup remove $vg-$lv1
-dmsetup remove /dev/mapper/$vg-pvmove0*
+dmsetup remove "$DM_DEV_DIR/mapper/$vg-pvmove0*"
 
 # Check we really have pvmove volume
 check lv_attr_bit type $vg/pvmove0 "p"