X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap-hc2vpp-integration.sh;fp=bootstrap-hc2vpp-integration.sh;h=f7e9be44fd082720b2c978f606bed70b5be28126;hp=075ac963565a3a935c0de59e87c323695fdec7f8;hb=e6d3baeead965e36546efd4bb6d80f974b650d29;hpb=2efff80ae46202b53fafdc67332ae684fc889e49 diff --git a/bootstrap-hc2vpp-integration.sh b/bootstrap-hc2vpp-integration.sh index 075ac96356..f7e9be44fd 100755 --- a/bootstrap-hc2vpp-integration.sh +++ b/bootstrap-hc2vpp-integration.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) + STREAM=$1 OS=$2 @@ -228,6 +230,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}