aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/clean
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clean')
-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