summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorliang gao <jean.gaoliang@huawei.com>2016-08-09 09:41:30 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-09 09:41:30 +0000
commit69a2d149dc0aa99cd4c1e52e05a77112f3115f20 (patch)
tree526f18b628cc5d380110bee708c1d6878af589d5 /tests
parent9cc0b04973636e85b1d5a618dee4264cec62084c (diff)
parentbe645733387100ac6a9e2b2b5aea388f4d175e41 (diff)
Merge "add reporting to mongodb in yardstick ci"
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ci/yardstick-verify9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/ci/yardstick-verify b/tests/ci/yardstick-verify
index 649eb31fd..0e234f54d 100755
--- a/tests/ci/yardstick-verify
+++ b/tests/ci/yardstick-verify
@@ -293,13 +293,18 @@ EOF
done
- if [ $failed -gt 0 ]; then
+ local sceanrio_status="success"
+ if [ $failed -gt 0 ]; then
+ scenario_status="failed"
echo "---------------------------"
echo "$failed out of ${SUITE_FILES[*]} test suites FAILED"
echo "---------------------------"
exit 1
- fi
+ fi
+ curl -i -H 'content-type: application/json' -X POST -d \
+ '{\"details\":{\"${DEPLOY_SCENARIO}\":\"${sceanrio_status}\"}}' \
+ http://${DISPATCHER_HTTP_TARGET}:3570
else