aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/clean/server/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clean/server/test.sh')
-rwxr-xr-xscripts/clean/server/test.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/clean/server/test.sh b/scripts/clean/server/test.sh
index b897c30ba..5694ac922 100755
--- a/scripts/clean/server/test.sh
+++ b/scripts/clean/server/test.sh
@@ -21,7 +21,14 @@ dropRedis () {
21 redis-cli KEYS "redis-localhost:900$1*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL 21 redis-cli KEYS "redis-localhost:900$1*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL
22} 22}
23 23
24for i in $(seq 1 6); do 24seq=$(seq 1 6)
25
26if [ ! -z ${1+x} ]; then
27 seq=$1
28fi
29
30
31for i in $seq; do
25 recreateDB "$i" & 32 recreateDB "$i" &
26 dropRedis "$i" & 33 dropRedis "$i" &
27 removeFiles "$i" & 34 removeFiles "$i" &