X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap-hc2vpp-verify.sh;h=4b4497ba07b8b5b6ce8ff3664828f2a0af2cd159;hp=b642da760f495254e3e96500f5245f1094c72b1f;hb=7cfeed26cbc486a4e6898dc7696e0bd8300b3a04;hpb=6721e7f09aa95bff6622068332a3f56afad9c87b diff --git a/bootstrap-hc2vpp-verify.sh b/bootstrap-hc2vpp-verify.sh index b642da760f..4b4497ba07 100755 --- a/bootstrap-hc2vpp-verify.sh +++ b/bootstrap-hc2vpp-verify.sh @@ -29,6 +29,8 @@ VIRL_PKEY=priv_key VIRL_SERVER_STATUS_FILE="status" VIRL_SERVER_EXPECTED_STATUS="PRODUCTION" +ARCHIVE_ARTIFACTS=(log.html output.xml report.html honeycomb.log) + OS=$1 if [ "${OS}" == "ubuntu1604" ]; then @@ -224,6 +226,16 @@ PYTHONPATH=`pwd` pybot -L TRACE -W 136\ --noncritical EXPECTED_FAILING \ tests/ +RETURN_STATUS=$? + # Get Honeycomb log file from virl host scp ${SSH_OPTIONS} \ ${VIRL_USERNAME}@${VIRL_SERVER}:/scratch/${VIRL_SID}/honeycomb.log . || true + +# Archive artifacts +mkdir archive +for i in ${ARCHIVE_ARTIFACTS[@]}; do + cp $( readlink -f ${i} | tr '\n' ' ' ) archive/ +done + +exit ${RETURN_STATUS}