Преглед изворни кода

drop inline loading of .env in tests bash scripts

Mokhtar Naamani пре 3 година
родитељ
комит
483191dd0a

+ 0 - 4
tests/network-tests/run-full-tests.sh

@@ -4,10 +4,6 @@ set -e
 SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
 cd $SCRIPT_PATH
 
-set -a
-. ../../.env
-set +a
-
 # Clean start
 docker-compose -f ../../docker-compose.yml down -v
 

+ 0 - 7
tests/network-tests/run-tests.sh

@@ -29,13 +29,6 @@ fi
 
 # Execute tests
 
-# We can load env config used to start docker services and pass them on to the
-# tests. This could be useful to capture keys used or URLs.
-# We just have to watchout for clashing env var names.
-set -a
-. ../../.env
-set +a
-
 if [ "${NO_STORAGE}" != true ]
 then
   ./start-storage.sh

+ 0 - 5
tests/network-tests/start-storage.sh

@@ -1,11 +1,6 @@
 TMP=$0
 THIS_DIR=`dirname $TMP`
 
-# make sure env variables are loaded before calling this script
-#set -a
-#. ../../.env
-#set +a
-
 HOST_IP=`$THIS_DIR/get-host-ip.sh`
 export COLOSSUS_1_URL="http://${HOST_IP}:3333"
 export DISTRIBUTOR_1_URL="http://${HOST_IP}:3334"