Revert "remove sourcing of opnfv-openrc.rc in releng script" 36/1336/1
authorMorgan Richomme <morgan.richomme@orange.com>
Thu, 27 Aug 2015 08:51:52 +0000 (10:51 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Thu, 27 Aug 2015 08:51:52 +0000 (10:51 +0200)
This reverts commit dae21e80b2a8a9b8201abd2aeaa082be970eb6ca.

jjb/functest/functest.yml

index 7ea794a..bf824b6 100644 (file)
 
             echo "Functest: prepare Functest environment"
             mkdir -p $HOME/functest/
+            # source openstack vars
+            if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
+                echo "Unable to access file $HOME/opnfv-openrc.sh"
+                exit 1
+            fi
+            source $HOME/opnfv-openrc.sh
 
             # WORKSPACE is the root of the functest repo
             # go into WORKSPACE where the functest repo is cloned
 
             echo "Functest: prepare Functest environment"
             mkdir -p $HOME/functest/
+            # source openstack vars
+            if [[ ! -f $HOME/opnfv-openrc.sh ]]; then
+                echo "Unable to access file $HOME/opnfv-openrc.sh"
+                exit 1
+            fi
+            source $HOME/opnfv-openrc.sh
 
             # WORKSPACE is the root of the functest repo
             # go into WORKSPACE where the functest repo is cloned
 
             echo "Functest: prepare Functest environment"
             mkdir -p $HOME/functest/
+            source $HOME/functest/opnfv-openrc.sh
 
             # WORKSPACE is the root of the functest repo
             # go into WORKSPACE where the functest repo is cloned