diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/clean_test.sh | 7 |
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 | ||
3 | printf "use peertube-test1;\ndb.dropDatabase();\nuse peertube-test2;\ndb.dropDatabase();\nuse peertube-test3;\ndb.dropDatabase();" | mongo | 3 | for i in $(seq 1 6); do |
4 | 4 | printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo | |
5 | rm -rf ./test1 ./test2 ./test3 | 5 | rm -rf "./test$i" |
6 | done | ||