aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2016-05-26 13:40:05 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2016-05-26 13:41:16 +0200
commitd5ba524bf4702fc586129e9bc902908efc763f13 (patch)
tree647a63568eccabe01664b01d95fb2b9b313cfaa2 /ci
parent6557733dfaaf902f8546dfc019ba1b7fefc889da (diff)
Take report arg into account
$report is now tested before calling odlreport2db.py Change-Id: I92be1488f710065dbc0a0c00e8023c6201028c2f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/exec_test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ci/exec_test.sh b/ci/exec_test.sh
index c206a9ba..8c87160e 100755
--- a/ci/exec_test.sh
+++ b/ci/exec_test.sh
@@ -83,7 +83,8 @@ 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" &&
+ if [[ "$report" == "-r" &&
+ -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"