summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2016-02-22 14:13:30 -0600
committerDavid Teigland <teigland@redhat.com>2016-02-22 14:15:17 -0600
commitf4efc2435c29b3bf4375c17937d0d2ab2294e00e (patch)
treeabe3c9c9d7840d340992cc98c1ddc261842d4fd7
parentec81c421793e63373cf6e119fe4bfd60368ee47d (diff)
downloadlvm2-f4efc2435c29b3bf4375c17937d0d2ab2294e00e.tar.gz
tests: fix clean up after lvmlockd tests
-rw-r--r--test/shell/zz-lvmlockd-dlm-remove.sh7
-rw-r--r--test/shell/zz-lvmlockd-sanlock-remove.sh5
2 files changed, 10 insertions, 2 deletions
diff --git a/test/shell/zz-lvmlockd-dlm-remove.sh b/test/shell/zz-lvmlockd-dlm-remove.sh
index 3848c0e4f..05263142a 100644
--- a/test/shell/zz-lvmlockd-dlm-remove.sh
+++ b/test/shell/zz-lvmlockd-dlm-remove.sh
@@ -19,6 +19,11 @@ test_description='Remove the dlm test setup'
# lvmlockctl -d > lvmlockd-debug.txt
# dlm_tool dump > dlm-debug.txt
+lvmlockctl --stop-lockspaces
+sleep 1
+killall lvmlockd
+sleep 1
+killall lvmlockd || true
+sleep 1
systemctl stop dlm
systemctl stop corosync
-killall lvmlockd
diff --git a/test/shell/zz-lvmlockd-sanlock-remove.sh b/test/shell/zz-lvmlockd-sanlock-remove.sh
index ae5bdefd4..b01952ad5 100644
--- a/test/shell/zz-lvmlockd-sanlock-remove.sh
+++ b/test/shell/zz-lvmlockd-sanlock-remove.sh
@@ -26,11 +26,14 @@ vgremove --config 'devices { global_filter=["a|GL_DEV|", "r|.*|"] filter=["a|GL_
# lvmlockctl -d > lvmlockd-debug.txt
# sanlock log_dump > sanlock-debug.txt
+lvmlockctl --stop-lockspaces
+sleep 1
killall lvmlockd
sleep 1
+killall lvmlockd || true
+sleep 1
killall sanlock
sleep 1
-
killall -9 lvmlockd || true
killall -9 sanlock || true