X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap-verify-perf.sh;h=16dd536456f095e9fd9a4c3645612a1b96e593c9;hp=de478e5f11af3f45b9feb332a2bbd2fd3cb6b524;hb=a881153db68401e040f37262d60b5d5e3cc486ac;hpb=180d17939d123c04bf142cedf02daa325e3f4fa6;ds=sidebyside 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 +