aboutsummaryrefslogtreecommitdiffstats
path: root/plans/so/integration-etsi-testing/teardown.sh
diff options
context:
space:
mode:
authorwaqas.ikram <waqas.ikram@est.tech>2019-07-18 16:41:17 +0000
committerwaqas.ikram <waqas.ikram@est.tech>2019-07-18 16:41:17 +0000
commit7d753296b2f742c4633c0b81f468daccabba2c9e (patch)
treecfb57f69ae2e0badea86f4ff153b4f89a442a8d2 /plans/so/integration-etsi-testing/teardown.sh
parent466ddefb6c53c9328f814acc80368ed30d003751 (diff)
Automate workaround to trigger ETSI flow
Change-Id: Ib9bf3639acb16b7b403cb07ba71407711bd529ff Issue-ID: SO-1955 Signed-off-by: waqas.ikram <waqas.ikram@est.tech>
Diffstat (limited to 'plans/so/integration-etsi-testing/teardown.sh')
-rwxr-xr-xplans/so/integration-etsi-testing/teardown.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/plans/so/integration-etsi-testing/teardown.sh b/plans/so/integration-etsi-testing/teardown.sh
index 8b778a57..6014a0d1 100755
--- a/plans/so/integration-etsi-testing/teardown.sh
+++ b/plans/so/integration-etsi-testing/teardown.sh
@@ -19,4 +19,22 @@
# ============LICENSE_END=========================================================
#
-docker-compose down
+# @author Waqas Ikram (waqas.ikram@est.tech)
+
+SCRIPT_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+SCRIPT_NAME=$(basename $0)
+CONFIG_DIR=$SCRIPT_HOME/config
+ENV_FILE=$CONFIG_DIR/env
+TEMP_DIR_PATH=$SCRIPT_HOME/temp
+TEST_LAB_DIR_PATH=$TEMP_DIR_PATH/test_lab
+DOCKER_COMPOSE_FILE_PATH=$SCRIPT_HOME/docker-compose.yml
+
+echo "Running $SCRIPT_HOME/$SCRIPT_NAME ..."
+export $(egrep -v '^#' $ENV_FILE | xargs)
+export TEST_LAB_DIR=$TEST_LAB_DIR_PATH
+export CONFIG_DIR_PATH=$CONFIG_DIR
+
+
+docker-compose -f $DOCKER_COMPOSE_FILE_PATH down
+
+echo "Finished executing $SCRIPT_HOME/$SCRIPT_NAME"