aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/clean_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/clean_test.sh')
-rwxr-xr-xscripts/clean_test.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/clean_test.sh b/scripts/clean_test.sh
index 8868cbddf..e46b5ecd5 100755
--- a/scripts/clean_test.sh
+++ b/scripts/clean_test.sh
@@ -1,5 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2 2
3printf "use peertube-test1;\ndb.dropDatabase();\nuse peertube-test2;\ndb.dropDatabase();\nuse peertube-test3;\ndb.dropDatabase();" | mongo 3for i in $(seq 1 6); do
4 4 printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
5rm -rf ./test1 ./test2 ./test3 5 rm -rf "./test$i"
6done