aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap-hc2vpp-integration-odl.sh12
-rwxr-xr-xbootstrap-hc2vpp-integration.sh12
-rwxr-xr-xbootstrap-hc2vpp-verify-odl.sh12
-rwxr-xr-xbootstrap-hc2vpp-verify.sh12
4 files changed, 48 insertions, 0 deletions
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}
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}
diff --git a/bootstrap-hc2vpp-verify-odl.sh b/bootstrap-hc2vpp-verify-odl.sh
index b065edc7c4..b63a06d5d7 100755
--- a/bootstrap-hc2vpp-verify-odl.sh
+++ b/bootstrap-hc2vpp-verify-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)
+
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}
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}