summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/glusterd/bug-1314649-group-virt.t14
-rw-r--r--tests/include.rc5
2 files changed, 17 insertions, 2 deletions
diff --git a/tests/bugs/glusterd/bug-1314649-group-virt.t b/tests/bugs/glusterd/bug-1314649-group-virt.t
new file mode 100644
index 00000000000..257e7845611
--- /dev/null
+++ b/tests/bugs/glusterd/bug-1314649-group-virt.t
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+. $(dirname $0)/../../include.rc
+. $(dirname $0)/../../volume.rc
+
+cleanup;
+
+TEST glusterd
+
+TEST $CLI volume create $V0 replica 2 stripe 2 $H0:$B0/${V0}{1,2,3,4,5,6,7,8};
+
+TEST $CLI volume set $V0 group virt;
+
+cleanup;
diff --git a/tests/include.rc b/tests/include.rc
index 03c9f444361..9be67de8a07 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -455,9 +455,10 @@ function cleanup()
;;
esac
- # remove contents of "GLUSTERD_WORKDIR" except hooks directory.
+ # remove contents of "GLUSTERD_WORKDIR" except hooks and groups
+ # directories.
find $GLUSTERD_WORKDIR/* -maxdepth 0 -name 'hooks' -prune \
- -o -exec rm -rf '{}' ';'
+ -o -name 'groups' -prune -o -exec rm -rf '{}' ';'
rm -rf $B0/* /etc/glusterd/*;