Move check_os call to prepare_env.sh
authorjose.lausuch <jose.lausuch@ericsson.com>
Tue, 22 Dec 2015 16:22:49 +0000 (17:22 +0100)
committerjose.lausuch <jose.lausuch@ericsson.com>
Tue, 22 Dec 2015 16:22:49 +0000 (17:22 +0100)
Change-Id: Ifcc9ef24975f83f6c0ee021c76cc056f383f3f5e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
docker/prepare_env.sh
docker/run_tests.sh

index 0c618bf..6127e2c 100755 (executable)
@@ -188,6 +188,13 @@ fi
 # Source credentials
 source ${FUNCTEST_CONF_DIR}/openstack.creds
 
+# Check OpenStack
+info "Checking that the basic OpenStack services are functional..."
+${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/check_os.sh
+RETVAL=$?
+if [ $RETVAL -ne 0 ]; then
+    exit 1
+fi
 
 # Prepare Functest Environment
 info "Functest: prepare Functest environment"
index 00d5348..7ae6786 100755 (executable)
@@ -175,14 +175,6 @@ fi
 info "Sourcing Credentials ${FUNCTEST_CONF_DIR}/openstack.creds to run the tests.."
 source ${FUNCTEST_CONF_DIR}/openstack.creds
 
-# Check OpenStack
-info "Checking that the basic OpenStack services are functional..."
-${FUNCTEST_REPO_DIR}/testcases/VIM/OpenStack/CI/libraries/check_os.sh
-RETVAL=$?
-if [ $RETVAL -ne 0 ]; then
-    exit 1
-fi
-
 # Run tests
 if [ "${TEST}" != "" ]; then
     for i in "${arr_test_exec[@]}"; do