summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/include.rc')
-rw-r--r--tests/include.rc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 6f224833bf9..2beb4e676af 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -512,11 +512,12 @@ function cleanup()
;;
esac
- # remove contents of "GLUSTERD_WORKDIR" except hooks directory.
+ # remove contents of "GLUSTERD_WORKDIR" except hooks and groups
+ # directories.
if [ -n $GLUSTERD_WORKDIR ]
then
find $GLUSTERD_WORKDIR/* -maxdepth 0 -name 'hooks' -prune \
- -o -exec rm -rf '{}' ';'
+ -o -name 'groups' -prune -o -exec rm -rf '{}' ';'
else
echo "GLUSTERD_WORKDIR is not set"
fi