diff options
author | yuyang <Gabriel.yuyang@huawei.com> | 2017-05-22 19:19:56 +0800 |
---|---|---|
committer | yuyang <Gabriel.yuyang@huawei.com> | 2017-05-25 15:32:21 +0800 |
commit | 8fd28cfeaca4ac29f4357c51eb0c0374d0d0a409 (patch) | |
tree | 88b646af98e564139a5b74d08489f8efe1481e89 /run_tests.sh | |
parent | 95748aca5de2e906b0f555e7dbf3829e397d6415 (diff) |
Add reporting to MongoDB
JIRA: BOTTLENECK-158
Add reporting function to community MongoDB
Change-Id: Idebc191b20ad238dbdd129ce38131b79e7133e35
Signed-off-by: yuyang <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/run_tests.sh b/run_tests.sh index 7e4be373..41104208 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -37,10 +37,9 @@ POSCA_TESTCASE="/home/opnfv/bottlenecks/testsuites/posca/testcase_cfg" POSCA_TESTSTORY="/home/opnfv/bottlenecks/testsuites/posca/testsuite_story" BASEDIR=`dirname $0` -report=false +REPORT="False" cleanup=false - # Define alias for log printing info () { logger -s -t "bottlenecks.info" "$*" @@ -109,8 +108,8 @@ function run_test(){ info "Pulling tutum/influxdb for yardstick" docker pull tutum/influxdb:0.13 sleep 5 - info "Running posca test story: $test_exec" - docker exec bottleneckcompose_bottlenecks_1 python ${POSCA_SUITE}/run_posca.py $test_level $test_exec + info "Running posca $test_level: $test_exec" + docker exec bottleneckcompose_bottlenecks_1 python ${POSCA_SUITE}/run_posca.py $test_level $test_exec $REPORT ;; esac } @@ -134,7 +133,7 @@ while [[ $# > 0 ]] shift ;; --report) - report=true + REPORT="True" ;; --cleanup) cleanup=true @@ -148,11 +147,11 @@ while [[ $# > 0 ]] done # Clean up related docker images -bash ${BASEDIR}/docker/docker_cleanup.sh -d bottlenecks --debug -bash ${BASEDIR}/docker/docker_cleanup.sh -d yardstick --debug -bash ${BASEDIR}/docker/docker_cleanup.sh -d kibana --debug -bash ${BASEDIR}/docker/docker_cleanup.sh -d elasticsearch --debug -bash ${BASEDIR}/docker/docker_cleanup.sh -d influxdb --debug +#bash ${BASEDIR}/docker/docker_cleanup.sh -d bottlenecks --debug +#bash ${BASEDIR}/docker/docker_cleanup.sh -d yardstick --debug +#bash ${BASEDIR}/docker/docker_cleanup.sh -d kibana --debug +#bash ${BASEDIR}/docker/docker_cleanup.sh -d elasticsearch --debug +#bash ${BASEDIR}/docker/docker_cleanup.sh -d influxdb --debug # Run tests if [ "${teststory}" != "" ]; then |