X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap-hc2vpp-integration-odl.sh;h=a7e7c5724bab7698b256e5c005d8de62cffb57f3;hp=fc7f732008e67ed0e0e31f4bcb98c047e6f167e1;hb=b52c43bd354ee658d4f955995a08073a1338e898;hpb=6721e7f09aa95bff6622068332a3f56afad9c87b diff --git a/bootstrap-hc2vpp-integration-odl.sh b/bootstrap-hc2vpp-integration-odl.sh index fc7f732008..a7e7c5724b 100755 --- a/bootstrap-hc2vpp-integration-odl.sh +++ b/bootstrap-hc2vpp-integration-odl.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 ODL=$3 @@ -231,6 +233,16 @@ PYTHONPATH=`pwd` pybot -L TRACE -W 136\ --variable HC_ODL:${ODL} \ 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}