aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-01-15 14:02:54 +0800
committerqi liang <liangqi1@huawei.com>2016-01-15 14:03:06 +0000
commit95bd6646420c19efd574254b1f0448f1c1ab533f (patch)
tree950493eeaf8e910ab5940f5b1a08bef547d91a0c
parentb111866af4a311ef965443499bf46505f2c2a22a (diff)
Dump test result when test finished
JIRA: - Change-Id: I8712f1c4a0a063bdf7ba6a425015dea894c34d16 Signed-off-by: QiLiang <liangqi1@huawei.com> (cherry picked from commit 261e3fe02d803fd6476a4af56dea32a29094923b)
-rwxr-xr-xci/yardstick-verify43
1 files changed, 32 insertions, 11 deletions
diff --git a/ci/yardstick-verify b/ci/yardstick-verify
index 9e875ed32..981e8d0b4 100755
--- a/ci/yardstick-verify
+++ b/ci/yardstick-verify
@@ -222,22 +222,32 @@ EOF
echo "Running test suite: $suite"
echo "---------------------------"
- if ! yardstick task start --suite $suite; then
+ if ! yardstick task start --suite $suite; then
echo "test suite $suite FAILED";
- # Mark the test suite failed but continue
- # running the remaining test suites.
- (( failed++ ))
- fi
+ # Mark the test suite failed but continue
+ # running the remaining test suites.
+ (( failed++ ))
+ fi
+ if [ ${DISPATCHER_TYPE} = file ]; then
+ echo "---------------------------"
+ echo "Dump test suite $suite result"
+ echo "---------------------------"
+ if [ -f ${DISPATCHER_FILE_NAME} ]; then
+ cat ${DISPATCHER_FILE_NAME}
+ else
+ echo "Test result file ${DISPATCHER_FILE_NAME} is not exist"
+ fi
+ fi
- done
+ done
- if [ $failed -gt 0 ]; then
+ if [ $failed -gt 0 ]; then
- echo "---------------------------"
- echo "$failed out of ${SUITE_FILES[*]} test suites FAILED"
- echo "---------------------------"
- exit 1
+ echo "---------------------------"
+ echo "$failed out of ${SUITE_FILES[*]} test suites FAILED"
+ echo "---------------------------"
+ exit 1
fi
else
@@ -251,6 +261,17 @@ EOF
exit 1
fi
+ if [ ${DISPATCHER_TYPE} = file ]; then
+ echo "---------------------------"
+ echo "Dump samples/ping.yaml test result"
+ echo "---------------------------"
+ if [ -f ${DISPATCHER_FILE_NAME} ]; then
+ cat ${DISPATCHER_FILE_NAME}
+ else
+ echo "Test result file ${DISPATCHER_FILE_NAME} is not exist"
+ fi
+ fi
+
fi
}