Bottlenecks: bugfix for run_test script path 57/12257/1
authorMatthewLi <matthew.lijun@huawei.com>
Thu, 14 Apr 2016 06:46:42 +0000 (02:46 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Thu, 14 Apr 2016 06:46:42 +0000 (02:46 -0400)
Change-Id: I8cdbdaa34b2619edd4345efb53a5990b3515ed3c
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
jjb/bottlenecks/bottlenecks-ci-jobs.yml

index 415cdf3..bfc8c13 100644 (file)
         - '{pod}-defaults'
         - '{installer}-defaults'
         - 'bottlenecks-params-{pod}'
+        - string:
+            name: REPO_DIR
+            default: "/home/opnfv/bottlenecks"
+            description: "Directory where the repository is cloned"
         - string:
             name: DEPLOY_SCENARIO
             default: 'os-odl_l2-nofeature-ha'
                   -e NODE_NAME=${NODE_NAME} -e EXTERNAL_NET=${EXTERNAL_NETWORK} \
                   -e BOTTLENECKS_BRANCH=${BOTTLENECKS_BRANCH} -e GERRIT_REFSPEC_DEBUG=${GERRIT_REFSPEC_DEBUG} \
                   -e BOTTLENECKS_DB_TARGET=${BOTTLENECKS_DB_TARGET} -e PACKAGE_URL=${PACKAGE_URL}"
-            run_testsuite="run_tests.sh -s ${SUITE_NAME}"
+            run_testsuite="${REPO_DIR}/run_tests.sh -s ${SUITE_NAME}"
             cmd="sudo docker run ${opts} ${envs} opnfv/bottlenecks ${run_testsuite} >${redirect}"
             echo "Bottlenecks: docker cmd running: ${cmd}"
             ${cmd}