aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/clean/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-24 10:53:40 +0200
committerChocobozzz <me@florianbigard.com>2019-04-24 16:26:23 +0200
commit210feb6cc484a6c5c63c98f770de34e223f944cb (patch)
treed1d841892a7ac87ac0d434194597606a375aaed1 /scripts/clean/server
parent9cc8d43e37a61709e7275c2a799bdf976dd940ca (diff)
downloadPeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.gz
PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.tar.zst
PeerTube-210feb6cc484a6c5c63c98f770de34e223f944cb.zip
Cleanup tests
Diffstat (limited to 'scripts/clean/server')
-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" &