1
0
Fork 0
peertube/bin/clean_test.sh

9 lines
198 B
Bash
Raw Normal View History

2016-03-07 17:06:54 +00:00
#!/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
2016-03-07 17:53:03 +00:00
rm -rf "$basePath/../test$i"
2016-03-07 17:06:54 +00:00
done