From 57c36b277e68b764dd34cb2e449f6e2ca3d1e9b6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 19 Jul 2018 16:17:54 +0200 Subject: Begin advanced search --- scripts/clean/server/test.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/clean') 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 @@ set -eu for i in $(seq 1 6); do - dropdb --if-exists "peertube_test$i" + dbname="peertube_test$i" + + dropdb --if-exists "$dbname" rm -rf "./test$i" rm -f "./config/local-test.json" rm -f "./config/local-test-$i.json" - createdb -O peertube "peertube_test$i" + createdb -O peertube "$dbname" + psql -c "CREATE EXTENSION pg_trgm;" "$dbname" + psql -c "CREATE EXTENSION unaccent;" "$dbname" redis-cli KEYS "bull-localhost:900$i*" | grep -v empty | xargs --no-run-if-empty redis-cli DEL done -- cgit v1.2.3