Revert stackName Variable 87/9187/1
authorFelipe Vicens <felipe.vicens@atos.net>
Thu, 25 Jun 2020 19:52:06 +0000 (21:52 +0200)
committerFelipe Vicens <felipe.vicens@atos.net>
Thu, 25 Jun 2020 19:52:10 +0000 (21:52 +0200)
Adding BRANCH_NAME variable for release tests

Change-Id: Ife3e1c727997e0348ed89019b1c8912840e53fe5
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
robot-systest/run_test.sh

index f5753cc..edf32b7 100755 (executable)
@@ -52,7 +52,7 @@ while (( "$#" )); do
             shift 2
             ;;
         -o|--osmclientversion)
-            OSMCLIENT=$2 install_osmclient
+            OSMCLIENT=$2 && install_osmclient
             shift 2
             ;;
         -c|--createvim)
@@ -98,8 +98,9 @@ done
 
 eval set -- "$PARAMS"
 
-if [[ -n "$stackName" ]]; then
-    export OSM_HOSTNAME=osm${stackName}_nbi
+if [[ -n "$BRANCH_NAME" ]]; then
+    PACKAGES=$BRANCH_NAME && download_packages
+    OSMCLIENT=$BRANCH_NAME && install_osmclient
 fi
 
 if [[ -z "${TEST}" ]]; then