diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2015-11-24 08:33:59 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2015-11-24 08:33:59 +0100 |
commit | 3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a (patch) | |
tree | b202172a35956b252282105f614fc9646ca64ebb /scripts/clean_test.sh | |
parent | 2e3b5b0db652ae4787e359aadbd4f52e473b6af7 (diff) | |
download | PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.gz PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.zst PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.zip |
Make the network auto sufficient (eject bad pods with scores)
Diffstat (limited to 'scripts/clean_test.sh')
-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 | ||