From: Markos Chandras Date: Fri, 23 Mar 2018 08:38:47 +0000 (+0000) Subject: xci: files: install-lib.sh: Hide rsync errors X-Git-Tag: 6.0.0~75^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=10891483b87546803280b619fb4611692c3e7098;p=releng-xci.git xci: files: install-lib.sh: Hide rsync errors rsync may fail because the OPNFV VM doesn't exist if we failed quite early in the process so hide any errors from the remote rsync operation to avoid confusion. Change-Id: I43dfb0a527165a186674178d12e6d00ffc61f580 Signed-off-by: Markos Chandras --- diff --git a/xci/files/install-lib.sh b/xci/files/install-lib.sh index 2679233d..8ac6d612 100644 --- a/xci/files/install-lib.sh +++ b/xci/files/install-lib.sh @@ -182,8 +182,8 @@ collect_xci_logs() { mkdir -p ${LOG_PATH}/ara/ ${LOG_PATH}/opnfv/ara rsync -q -a "${HOME}/.ara/ansible.sqlite" "${LOG_PATH}/ara/" - rsync -q -a root@${OPNFV_HOST_IP}:releng-xci/${LOG_PATH#$XCI_PATH/}/ ${LOG_PATH}/opnfv/ || true - rsync -q -a root@${OPNFV_HOST_IP}:.ara/ansible.sqlite ${LOG_PATH}/opnfv/ara/ || true + rsync -q -a root@${OPNFV_HOST_IP}:releng-xci/${LOG_PATH#$XCI_PATH/}/ ${LOG_PATH}/opnfv/ &> /dev/null || true + rsync -q -a root@${OPNFV_HOST_IP}:.ara/ansible.sqlite ${LOG_PATH}/opnfv/ara/ &> /dev/null || true sudo -H -E bash -c 'chown ${SUDO_UID}:${SUDO_GID} -R ${LOG_PATH}/' }