aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-07-19 16:17:54 +0200
committerChocobozzz <me@florianbigard.com>2018-07-24 14:04:05 +0200
commit57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6 (patch)
tree87ebcd623c06445b9b25a237addefc98a2d64afa /scripts
parent7279b455811f4806dcb74a08d17b837bc22533c1 (diff)
downloadPeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.tar.gz
PeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.tar.zst
PeerTube-57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6.zip
Begin advanced search
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clean/server/test.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/clean/server/test.sh b/scripts/clean/server/test.sh
index 42651d3a8..3b8fe39ed 100755
--- a/scripts/clean/server/test.sh
+++ b/scripts/clean/server/test.sh
@@ -3,10 +3,14 @@
3set -eu 3set -eu
4 4
5for i in $(seq 1 6); do 5for i in $(seq 1 6); do
6 dropdb --if-exists "peertube_test$i" 6 dbname="peertube_test$i"
7
8 dropdb --if-exists "$dbname"
7 rm -rf "./test$i" 9 rm -rf "./test$i"
8 rm -f "./config/local-test.json" 10 rm -f "./config/local-test.json"
9 rm -f "./config/local-test-$i.json" 11 rm -f "./config/local-test-$i.json"
10 createdb -O peertube "peertube_test$i" 12 createdb -O peertube "$dbname"
13 psql -c "CREATE EXTENSION pg_trgm;" "$dbname"
14 psql -c "CREATE EXTENSION unaccent;" "$dbname"
11 redis-cli KEYS "bull-localhost:900$i*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL 15 redis-cli KEYS "bull-localhost:900$i*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL
12done 16done