From a881153db68401e040f37262d60b5d5e3cc486ac Mon Sep 17 00:00:00 2001 From: pmikus Date: Tue, 3 May 2016 07:21:15 +0200 Subject: Parse robot output.xml for performance reporting - JIRA: CSIT-58 - parse robot framework output.xml file - find performance related data - write formatted json to specified file - copy archive artifact to directory Change-Id: I47e45bcb68c06044a23192cb1fca46f43782941e Signed-off-by: pmikus Signed-off-by: Peter Mikus --- bootstrap-verify-perf.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'bootstrap-verify-perf.sh') diff --git a/bootstrap-verify-perf.sh b/bootstrap-verify-perf.sh index de478e5f11..16dd536456 100755 --- a/bootstrap-verify-perf.sh +++ b/bootstrap-verify-perf.sh @@ -25,6 +25,8 @@ INSTALLATION_DIR="/tmp/install_dir" PYBOT_ARGS="--noncritical MULTI_THREAD" +ARCHIVE_ARTIFACTS=(log.html output.xml report.html output_perf_data.json) + # If we run this script from CSIT jobs we want to use stable vpp version if [[ ${JOB_NAME} == csit-* ]] ; then @@ -160,3 +162,18 @@ case "$TEST_TAG" in tests/ esac +# Pybot output post-processing +python ${CUR_DIR}/resources/tools/robot_output_parser.py \ + -i ${CUR_DIR}/output.xml \ + -o ${CUR_DIR}/output_perf_data.json \ + -v ${VPP_STABLE_VER} +if [ ! $? -eq 0 ]; then + echo "Parsing ${CUR_DIR}/output.xml failed" +fi + +# Archive artifacts +mkdir archive +for i in ${ARCHIVE_ARTIFACTS[@]}; do + cp $( readlink -f ${i} | tr '\n' ' ' ) archive/ +done + -- cgit 1.2.3-korg