summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-03-23 01:15:29 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-23 01:15:29 +0100
commit7575c7ae5c012c4a20bd4c2563640880f522789c (patch)
treecb04623137d18e6ec0871042a0d1b16440700e40
parentf370cda716f14d0ba1ba97fa3dd5887d5165b140 (diff)
downloadlvm2-7575c7ae5c012c4a20bd4c2563640880f522789c.tar.gz
tests: set known locking dir
Tests running in the system may use locking dir of the system.
-rw-r--r--test/shell/lock-blocking.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/shell/lock-blocking.sh b/test/shell/lock-blocking.sh
index 06f1a7ab0..9defaf2c7 100644
--- a/test/shell/lock-blocking.sh
+++ b/test/shell/lock-blocking.sh
@@ -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"