summaryrefslogtreecommitdiffstats
path: root/jjb/functest/functest.yml
diff options
context:
space:
mode:
Diffstat (limited to 'jjb/functest/functest.yml')
-rw-r--r--jjb/functest/functest.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml
index 3a7b09e09..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
@@ -591,6 +596,10 @@
# prepare
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
# vPing
echo "Functest: run vPing"