From 210feb6cc484a6c5c63c98f770de34e223f944cb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Apr 2019 10:53:40 +0200 Subject: Cleanup tests --- scripts/clean/server/test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'scripts') 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 () { redis-cli KEYS "redis-localhost:900$1*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL } -for i in $(seq 1 6); do +seq=$(seq 1 6) + +if [ ! -z ${1+x} ]; then + seq=$1 +fi + + +for i in $seq; do recreateDB "$i" & dropRedis "$i" & removeFiles "$i" & -- cgit v1.2.3