aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-03-07 18:22:13 +0100
committerChocobozzz <florian.bigard@gmail.com>2016-03-07 18:22:13 +0100
commit6a1e67b30a77b0e24314617f794a7122dd83c570 (patch)
tree9f8b7a8533a280dbb76c4bc29c225e5c8d2ddec7
parente7870ff368251c6368137aab4f670517b37a2a20 (diff)
downloadPeerTube-6a1e67b30a77b0e24314617f794a7122dd83c570.tar.gz
PeerTube-6a1e67b30a77b0e24314617f794a7122dd83c570.tar.zst
PeerTube-6a1e67b30a77b0e24314617f794a7122dd83c570.zip
Fix clean_test script
-rwxr-xr-xbin/clean_test.sh2
-rwxr-xr-xscripts/clean_test.sh8
-rwxr-xr-xscripts/run_servers.sh12
3 files changed, 1 insertions, 21 deletions
diff --git a/bin/clean_test.sh b/bin/clean_test.sh
index ef146e091..ac885d9ec 100755
--- a/bin/clean_test.sh
+++ b/bin/clean_test.sh
@@ -4,5 +4,5 @@ basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
4 4
5for i in $(seq 1 6); do 5for i in $(seq 1 6); do
6 printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo 6 printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
7 rm -rf "$basePath/../test$i" 7 rm -rf "$basePath/../server/test$i"
8done 8done
diff --git a/scripts/clean_test.sh b/scripts/clean_test.sh
deleted file mode 100755
index ef146e091..000000000
--- a/scripts/clean_test.sh
+++ /dev/null
@@ -1,8 +0,0 @@
1#!/bin/bash
2
3basePath=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
4
5for i in $(seq 1 6); do
6 printf "use peertube-test%s;\ndb.dropDatabase();" "$i" | mongo
7 rm -rf "$basePath/../test$i"
8done
diff --git a/scripts/run_servers.sh b/scripts/run_servers.sh
deleted file mode 100755
index 83768178c..000000000
--- a/scripts/run_servers.sh
+++ /dev/null
@@ -1,12 +0,0 @@
1#!/bin/bash
2
3if [ ! -f server.js ]; then
4 echo "The script has to be executed at the root of the project."
5 exit -1
6fi
7
8NODE_ENV=test NODE_APP_INSTANCE=1 node server.js &
9sleep 1
10NODE_ENV=test NODE_APP_INSTANCE=2 node server.js &
11sleep 1
12NODE_ENV=test NODE_APP_INSTANCE=3 node server.js &