aboutsummaryrefslogblamecommitdiffhomepage
path: root/bin/clean_test.sh
blob: ac885d9ec12d1ae0baa0c8ee314cfd32e029b903 (plain) (tree)
1
2
3
4
5
6
7
8





                                                                
                                     
    
#!/bin/bash

basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

for i in $(seq 1 6); do
  printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
  rm -rf "$basePath/../server/test$i"
done