From b6884bd2091740e7f5c3a2dee78333194fb29a92 Mon Sep 17 00:00:00 2001 From: tierno Date: Fri, 15 Jul 2016 14:09:47 +0200 Subject: [PATCH] Fix error when OPENMANO envioronment is set a different location Change-Id: I0f3c7396bd27c857a677c2f37befd11a07616616 Signed-off-by: tierno --- test/basictest.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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!" -- 2.25.1