aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/clean_test.sh
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-11-24 09:53:27 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-11-24 09:53:27 +0100
commitecef65b6050f53e90e2239dd593706189ef8f03d (patch)
treebef86cf1cf9d09fd1c4c20593d28930f0cde943c /scripts/clean_test.sh
parent2dd5b570a6bb774eda2fb9b9ce7cffd0741eb0a2 (diff)
downloadPeerTube-ecef65b6050f53e90e2239dd593706189ef8f03d.tar.gz
PeerTube-ecef65b6050f53e90e2239dd593706189ef8f03d.tar.zst
PeerTube-ecef65b6050f53e90e2239dd593706189ef8f03d.zip
Add checks to the scripts (they has to be executed at the root of the
project)
Diffstat (limited to 'scripts/clean_test.sh')
-rwxr-xr-xscripts/clean_test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/clean_test.sh b/scripts/clean_test.sh
index e46b5ecd5..ef146e091 100755
--- a/scripts/clean_test.sh
+++ b/scripts/clean_test.sh
@@ -1,6 +1,8 @@
1#!/bin/bash 1#!/bin/bash
2 2
3basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
4
3for i in $(seq 1 6); do 5for i in $(seq 1 6); do
4 printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo 6 printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
5 rm -rf "./test$i" 7 rm -rf "$basePath/../test$i"
6done 8done