summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
diff options
context:
space:
mode:
authorVijaikumar M <vmallika@redhat.com>2014-01-27 14:05:20 +0530
committerRajesh Joseph <rjoseph@redhat.com>2014-02-04 22:57:45 -0800
commit0e32b7304dac960a09b7d425260172a47f4c762e (patch)
tree8efa6e2e3fd6444098f4f0bf0e004c0b53d46af0 /tests/include.rc
parentd382c7a7fdf92047655aa54e07a42d346d1d422a (diff)
snapshot: Framework for testing snapshot
This framework can be used to write functional testcase for snapshot operations Change-Id: I850d0e5021ac6c053d89c58567648e1bff273b19 Signed-off-by: Vijaikumar M <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/6798 Reviewed-by: Avra Sengupta <asengupt@redhat.com> Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'tests/include.rc')
-rw-r--r--tests/include.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/include.rc b/tests/include.rc
index bb541eaa1..042626cb8 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -186,13 +186,14 @@ function cleanup()
killall -15 glusterfs glusterfsd glusterd 2>/dev/null || true;
killall -9 glusterfs glusterfsd glusterd 2>/dev/null || true;
+ type cleanup_lvm &>/dev/null && cleanup_lvm
+
MOUNTPOINTS=`mount | grep "$B0/" | awk '{print $3}'`
for m in $MOUNTPOINTS;
do
umount $m
done
-
LOOPDEVICES=`losetup -a | grep "$B0/" | awk '{print $1}' | tr -d :`
for l in $LOOPDEVICES;
do
@@ -206,6 +207,7 @@ function cleanup()
umount -l $M1 2>/dev/null || true;
umount -l $N0 2>/dev/null || true;
umount -l $N1 2>/dev/null || true;
+
}
function volinfo_field()