Reduce console output in gate jobs

This patch brings over the rsync command from the
openstack-ansible-tests repository and reduces the
console log output.

Change-Id: I74ef40ce36256dacbd373fd22372f48b6bf276b4
This commit is contained in:
Major Hayden 2017-12-01 13:59:22 -06:00
parent 5944ed8f11
commit e795415993

View File

@ -137,8 +137,9 @@ function gate_job_exit_tasks {
fi
GATE_LOG_DIR="${OSA_CLONE_DIR:-$(dirname $0)/..}/logs"
mkdir -p "${GATE_LOG_DIR}/host" "${GATE_LOG_DIR}/openstack"
rsync --archive --verbose --safe-links --ignore-errors /var/log/ "${GATE_LOG_DIR}/host" || true
rsync --archive --verbose --safe-links --ignore-errors /openstack/log/ "${GATE_LOG_DIR}/openstack" || true
RSYNC_CMD="rsync --archive --safe-links --ignore-errors --quiet --no-perms --no-owner --no-group"
${RSYNC_CMD} /var/log/ "${GATE_LOG_DIR}/host" || true
${RSYNC_CMD} /openstack/log/ "${GATE_LOG_DIR}/openstack" || true
# Rename all files gathered to have a .txt suffix so that the compressed
# files are viewable via a web browser in OpenStack-CI.
# except tempest results testrepository.subunit and testr_results.html