From: tierno Date: Fri, 15 Jul 2016 12:09:47 +0000 (+0200) Subject: Fix error when OPENMANO envioronment is set a different location X-Git-Tag: v1.0.0~62 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=commitdiff_plain;h=b6884bd2091740e7f5c3a2dee78333194fb29a92 Fix error when OPENMANO envioronment is set a different location Change-Id: I0f3c7396bd27c857a677c2f37befd11a07616616 Signed-off-by: tierno --- diff --git a/test/basictest.sh b/test/basictest.sh index 38bf0157..91e87ec4 100755 --- a/test/basictest.sh +++ b/test/basictest.sh @@ -48,7 +48,7 @@ function is_valid_uuid(){ } #detect if is called with a source to use the 'exit'/'return' command for exiting -[[ ${BASH_SOURCE[0]} != $0 ]] && _exit="return" || _exit="exit" +[[ ${BASH_SOURCE[0]} != $0 ]] && _exit="return" || _exit="exit" #check correct arguments @@ -82,6 +82,12 @@ done DIRNAME=$(dirname $(readlink -f ${BASH_SOURCE[0]})) DIRmano=$(dirname $DIRNAME) DIRscript=${DIRmano}/scripts +export OPENMANO_HOST=localhost +export OPENMANO_PORT=9090 +[[ $insert_bashrc == y ]] && echo -e "\nexport OPENMANO_HOST=localhost" >> ~/.bashrc +[[ $insert_bashrc == y ]] && echo -e "\nexport OPENMANO_PORT=9090" >> ~/.bashrc + + #by default action should be reset and create [[ -z $action_list ]] && action_list="reset create delete" [[ -z $init_openvim ]] || initopenvim $force || echo "WARNING openvim cannot be initialized. The rest of test can fail!"