Skip to contentSkip to conversation

main - tests: test needs to have playable locking dir

PATCH Zdenek Kabelac 1 participant 1 message Mar 23, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=acac3cb52457b536cf8e984ce947a0ac2e837a5d
Commit:        acac3cb52457b536cf8e984ce947a0ac2e837a5d
Parent:        b19e036918cf1c2ac2995e07809a28c06bd1f34a
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Mar 23 09:48:47 2021 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Mar 23 09:48:47 2021 +0100

tests: test needs to have playable locking dir

---
 test/shell/vgchange-sysinit.sh | 2 ++
 1 file changed, 2 insertions(+)
test/shell/vgchange-sysinit.sh +2 -0
index cea72f4d0..5740addf5 100644
@@ -22,6 +22,8 @@ aux prepare_pvs 2 8
 var_lock="$DM_DEV_DIR/$vg1/$lv1"
 # keep in sync with aux configured lockingdir
 mount_dir="var/lock/lvm"
+mkdir -p $mount_dir
+aux lvmconf "global/locking_dir = \"$TESTDIR/$mount_dir\""
 
 cleanup_mounted_and_teardown()
 {