Skip to contentSkip to conversation

dev-next - tests: set known locking dir

PATCH David Teigland 1 participant 1 message Mar 31, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7575c7ae5c012c4a20bd4c2563640880f522789c
Commit:        7575c7ae5c012c4a20bd4c2563640880f522789c
Parent:        f370cda716f14d0ba1ba97fa3dd5887d5165b140
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Mar 23 01:15:29 2021 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Mar 23 01:15:29 2021 +0100

tests: set known locking dir

Tests running in the system may use locking dir of the system.

---
 test/shell/lock-blocking.sh | 3 +++
 1 file changed, 3 insertions(+)
test/shell/lock-blocking.sh +3 -0
index 06f1a7ab0..9defaf2c7 100644
@@ -17,6 +17,9 @@ SKIP_WITH_LVMPOLLD=1
 
 . lib/inittest
 
+# Make sure the placement of locking dir is known
+aux lvmconf "global/locking_dir = \"$TESTDIR/var/lock/lvm\""
+
 aux prepare_devs 3
 pvcreate "$dev1" "$dev2"
 vgcreate $SHARED $vg "$dev1" "$dev2"