xci: files: install-lib.sh: Hide rsync errors 89/54389/1
authorMarkos Chandras <mchandras@suse.de>
Fri, 23 Mar 2018 08:38:47 +0000 (08:38 +0000)
committerMarkos Chandras <mchandras@suse.de>
Fri, 23 Mar 2018 08:40:11 +0000 (08:40 +0000)
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 <mchandras@suse.de>
xci/files/install-lib.sh

index 2679233..8ac6d61 100644 (file)
@@ -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}/'
 }