From c76f8f80681c352b67fb714d65da25a5217c4ac8 Mon Sep 17 00:00:00 2001 From: Fangyin Hu Date: Fri, 14 Jul 2017 04:27:20 -0700 Subject: Fix the TLDK test tcpdump not found issue. Add the PYBOT execute exit status code. Change-Id: If0fc29c580177f1b187ec751c6708fc138838bed Signed-off-by: Fangyin Hu --- bootstrap-TLDK.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bootstrap-TLDK.sh') diff --git a/bootstrap-TLDK.sh b/bootstrap-TLDK.sh index 4678bf57a6..4f731cd527 100755 --- a/bootstrap-TLDK.sh +++ b/bootstrap-TLDK.sh @@ -17,6 +17,8 @@ set -x cat /etc/hostname cat /etc/hosts +ARCHIVE_ARTIFACTS=(log.html output.xml report.html) + SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export PYTHONPATH=${SCRIPT_DIR} @@ -199,3 +201,13 @@ PYTHONPATH=`pwd` pybot -L TRACE -W 150 \ --include vm_envAND3_node_single_link_topo \ --noncritical EXPECTED_FAILING \ tests/ + +RETURN_STATUS=$(echo $?) + +# Archive artifacts +mkdir archive +for i in ${ARCHIVE_ARTIFACTS[@]}; do + cp $( readlink -f ${i} | tr '\n' ' ' ) archive/ +done + +exit ${RETURN_STATUS} -- cgit 1.2.3-korg