aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2016-05-25 11:22:31 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2016-05-25 15:54:08 +0200
commitdbaa79889cf4297acadd923415dced2d38f90c1c (patch)
tree3a5778a94e204d2da026c2560eaef38bbc027b23 /ci
parentf4e7709897c748b771751a92964f78e168b77bf4 (diff)
Push results if INSTALLER_TYPE and NODE_NAME are defined
INSTALLER_TYPE and NODE_NAME are also checked before pushing ODL results in DB Change-Id: If92c8b50d3ae7618475aeb25ab732c6dddb08019 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/exec_test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/exec_test.sh b/ci/exec_test.sh
index 0bb8389d5..48f2894af 100755
--- a/ci/exec_test.sh
+++ b/ci/exec_test.sh
@@ -83,7 +83,9 @@ function run_test(){
${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/start_tests.sh
# push results to the DB in case of CI
- if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" ]]; then
+ if [[ -n "$DEPLOY_SCENARIO" && "$DEPLOY_SCENARIO" != "none" &&
+ -n "$INSTALLER_TYPE" && "$INSTALLER_TYPE" != "none" ]] &&
+ env | grep NODE_NAME > /dev/null; then
odl_logs="/home/opnfv/functest/results/odl/logs/2"
odl_path="${FUNCTEST_REPO_DIR}/testcases/Controllers/ODL/"
node_name=$(env | grep NODE_NAME | cut -f2 -d'=')