Added STD sim 2.0.0 tests
Issue-ID: NONRTRIC-308
Signed-off-by: BjornMagnussonXA <bjorn.magnusson@est.tech>
Change-Id: I2be9d7a474d52593f8c716ee77f7406de42efe45
diff --git a/test/common/testcase_common.sh b/test/common/testcase_common.sh
index 0afc2bc..3ed51c9 100755
--- a/test/common/testcase_common.sh
+++ b/test/common/testcase_common.sh
@@ -698,6 +698,8 @@
echo -e $RED" Build Failed"$ERED
((RES_CONF_FAIL++))
cat .dockererr
+ echo -e $RED"Exiting...."$ERED
+ exit 1
fi
cd $curdir
else
@@ -715,6 +717,8 @@
echo -e $RED" Build Failed"$ERED
((RES_CONF_FAIL++))
cat .dockererr
+ echo -e $RED"Exiting...."$ERED
+ exit 1
fi
cd $curdir
else
@@ -732,6 +736,8 @@
echo -e $RED" Build Failed"$ERED
((RES_CONF_FAIL++))
cat .dockererr
+ echo -e $RED"Exiting...."$ERED
+ exit 1
fi
cd $curdir
else
@@ -811,6 +817,7 @@
echo "-------------------------------------------------------------------------------------------------"
echo "-- Description: "$TC_ONELINE_DESCR
echo "-- Execution time: " $duration " seconds"
+ echo "-- Used env file: "$TEST_ENV_VAR_FILE
echo "-------------------------------------------------------------------------------------------------"
echo "------------------------------------- RESULTS"
echo ""
@@ -1868,6 +1875,23 @@
start_ecs() {
echo -e $BOLD"Starting ECS"$EBOLD
+
+ curdir=$PWD
+ cd $SIM_GROUP
+ cd ecs
+ cd $ECS_HOST_MNT_DIR
+ if [ -d database ]; then
+ echo -e $BOLD" Cleaning files in mounted dir: $PWD/database"$EBOLD
+ rm database/* > /dev/null
+ if [ $? -ne 0 ]; then
+ echo -e $RED" Cannot remove database files in: $PWD"$ERED
+ exit 1
+ fi
+ else
+ echo " No files in mounted dir or dir does not exists"
+ fi
+ cd $curdir
+
__check_included_image 'ECS'
if [ $? -eq 1 ]; then
echo -e $RED"The ECS image has not been checked for this test run due to arg to the test script"$ERED