diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2015-09-15 17:50:03 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2015-09-15 17:50:03 +0200 |
commit | a4b4db1dfe160d0ca0490abacdfc677f59fec6fe (patch) | |
tree | a0e5ca1d073ae3ec5b23595f8d52afaf33e30ddd /jjb | |
parent | d7ea0c198f58fc8a4e4c46e3d6e03db384a733e4 (diff) |
Check if OpenStack credentials are fetched before running Functest
Change-Id: Ia84457bbe5841fc1666919e4c0561229192bdbfe
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'jjb')
-rw-r--r-- | jjb/functest/functest.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml index e6729ea56..9e3ff5196 100644 --- a/jjb/functest/functest.yml +++ b/jjb/functest/functest.yml @@ -582,6 +582,11 @@ mkdir -p $HOME/functest/ # source openstack vars + if [ ! -f $HOME/opnfv-openrc.sh ]; then + echo "Credentials file not found in "$HOME/opnfv-openrc.sh + exit 1 + fi + echo "Sourcing the OpenStack credentials in"$HOME/opnfv-openrc.sh source $HOME/opnfv-openrc.sh # WORKSPACE is the root of the functest repo @@ -592,6 +597,7 @@ echo "Functest: prepare Functest environment" python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start if [ $? != 0 ]; then + echo "Error when configuring Functest environment" exit 1 fi |