From 5b433aac19df8524545f35aa38d1f7b72fcaa1cb Mon Sep 17 00:00:00 2001 From: Luz Cazares Date: Thu, 23 Mar 2017 23:11:09 +0000 Subject: [PATCH] Avoid renaming tempest result files In order to subunit file to be collected, file named must be testrepository.subunit. As part of osa log collection, extension ".txt" is added to all log files before gzipping it. This patch avoid adding extra text to test result file names Change-Id: I3a1e5f1cd3f02ebcf14389c0a49ed46f7c49a1f9 --- scripts/scripts-library.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/scripts-library.sh b/scripts/scripts-library.sh index 63eae3f9e9..edc9d8c8ea 100755 --- a/scripts/scripts-library.sh +++ b/scripts/scripts-library.sh @@ -142,7 +142,9 @@ function gate_job_exit_tasks { rsync --archive --verbose --safe-links --ignore-errors /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. - find "${GATE_LOG_DIR}/" -type f -exec mv {} {}.txt \; + # except tempest results testrepository.subunit and testr_results.html + find "${GATE_LOG_DIR}/" -type f -not -name "testrepository.subunit" -not -name "testr_results.html" -exec mv {} {}.txt \; + # Generate the ARA report /opt/ansible-runtime/bin/ara generate html "${GATE_LOG_DIR}/ara" || true # Compress the files gathered so that they do not take up too much space.