HC Test: Update archive items path in csit-hc2vpp jobs 60/7560/4
authorselias <samelias@cisco.com>
Thu, 13 Jul 2017 09:45:10 +0000 (11:45 +0200)
committerTibor Frank <tifrank@cisco.com>
Tue, 18 Jul 2017 12:37:56 +0000 (12:37 +0000)
merge after https://gerrit.fd.io/r/7314

Change-Id: I36d10bc7fd3c720eaf75a427b691d516a7399ea0
Signed-off-by: selias <samelias@cisco.com>
bootstrap-hc2vpp-integration-odl.sh
bootstrap-hc2vpp-integration.sh
bootstrap-hc2vpp-verify-odl.sh
bootstrap-hc2vpp-verify.sh

index fc7f732..a7e7c57 100755 (executable)
@@ -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}
index 075ac96..f7e9be4 100755 (executable)
@@ -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}
index b065edc..b63a06d 100755 (executable)
@@ -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
 ODL=$2
 
@@ -230,6 +232,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}
index b642da7..4b4497b 100755 (executable)
@@ -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}

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.