Skip to contentSkip to conversation

main - tests: devicesfile-edit.sh fix loop file name

PATCH David Teigland 1 participant 1 message Apr 21, 2022

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=5c50590b22b37055e93b571fb26d1854f73ae2fd
Commit:        5c50590b22b37055e93b571fb26d1854f73ae2fd
Parent:        bee575d678399a45db09ec8fcba79eae3890ec54
Author:        David Teigland <[email protected]>
AuthorDate:    Thu Apr 21 11:31:06 2022 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Thu Apr 21 11:31:06 2022 -0500

tests: devicesfile-edit.sh fix loop file name

don't remove dash from loop file name

---
 test/shell/devicesfile-edit.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
test/shell/devicesfile-edit.sh +2 -2
index 2a046e213..a71ca0c43 100644
@@ -141,8 +141,8 @@ rm $DF
 lvmdevices --adddev "$LOOP1"
 lvmdevices --adddev "$LOOP2"
 vgcreate $vg "$LOOP1" "$LOOP2"
-IDNAME1=`pvs "$LOOP1" --noheading -o deviceid | tr -d - | awk '{print $1}'`
-IDNAME2=`pvs "$LOOP2" --noheading -o deviceid | tr -d - | awk '{print $1}'`
+IDNAME1=`pvs "$LOOP1" --noheading -o deviceid | awk '{print $1}'`
+IDNAME2=`pvs "$LOOP2" --noheading -o deviceid | awk '{print $1}'`
 lvmdevices --deldev "$IDNAME2" --deviceidtype loop_file
 not grep "$IDNAME2" $DF
 not grep "$LOOP2" $DF