diff options
author | liang gao <jean.gaoliang@huawei.com> | 2016-08-21 02:07:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-21 02:07:44 +0000 |
commit | 6234e5e4edca9a92322fb0eb0aaf625291a42a7a (patch) | |
tree | bc0cdf00ea32b75f7cd9cf79ee73d5720a39bc3f /tests/ci | |
parent | 1a884e81e8ea3779f63122b3af844011d8a1d421 (diff) | |
parent | b2cebae3cab11b97771344cb689babf71a691d2c (diff) |
Merge "add starttime stoptime for mongodb"
Diffstat (limited to 'tests/ci')
-rwxr-xr-x | tests/ci/yardstick-verify | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/ci/yardstick-verify b/tests/ci/yardstick-verify index 7345e0e5b..eafadf987 100755 --- a/tests/ci/yardstick-verify +++ b/tests/ci/yardstick-verify @@ -280,15 +280,17 @@ password = 0pnfv2015 EOF local failed=0 + local start_date + local stop_date if [ ${#SUITE_FILES[@]} -gt 0 ]; then + start_date=$(date '+%Y-%m-%d %H:%M:%S') for suite in ${SUITE_FILES[*]}; do echo "---------------------------" echo "Running test suite: $suite" echo "---------------------------" - if ! yardstick task start --suite $suite; then echo "test suite $suite FAILED"; @@ -306,8 +308,10 @@ EOF echo "Test result file ${DISPATCHER_FILE_NAME} is not exist" fi fi - done + stop_date=$(date '+%Y-%m-%d %H:%M:%S') + + local sceanrio_status="SUCCESS" @@ -316,12 +320,14 @@ EOF fi curl -i -H 'content-type: application/json' -X POST -d \ "{\"project_name\": \"yardstick\", + \"case_name\": \"scenario_status\", \"pod_name\":\"${NODE_NAME}\", \"installer\":\"${INSTALLER_TYPE}\", - \"description\": \"yardstick ci scenario status\", - \"case_name\": \"scenario_status\", \"version\":\"${YARDSTICK_BRANCH}\", \"scenario\":\"${DEPLOY_SCENARIO}\", + \"description\": \"yardstick ci scenario status\", + \"start_date\":\"${start_date}\", + \"stop_date\":\"${stop_date}\", \"details\":\"${sceanrio_status}\"}" \ ${DISPATCHER_HTTP_TARGET} |