summaryrefslogtreecommitdiffstats
path: root/ci/envs/host-config
diff options
context:
space:
mode:
authorJiang, Yunhong <yunhong.jiang@intel.com>2017-05-18 16:34:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-18 16:34:00 +0000
commitc4d68bc45aa6aa8b7fe39bce206cb17c2cb2d365 (patch)
treec5967a40da2a377d6d277f8abb19a0ddbae4b0f2 /ci/envs/host-config
parentf894c01f90dd0d1813e8f32217cc0309ee5db219 (diff)
parent156570aeb2bd567890da31e4efecbe48d7129b8b (diff)
Merge "Optimizing the code and uploading ftrace logs to artifacts"
Diffstat (limited to 'ci/envs/host-config')
-rwxr-xr-xci/envs/host-config9
1 files changed, 8 insertions, 1 deletions
diff --git a/ci/envs/host-config b/ci/envs/host-config
index 54d262af4..c656f839b 100755
--- a/ci/envs/host-config
+++ b/ci/envs/host-config
@@ -64,9 +64,16 @@ function setTestTime {
#Tar the log files generated during testcase execution and exit.
function test_exit {
exitCode=$1
+ time_stamp=$(date -u +"%Y-%m-%d_%H-%M-%S")
cd $WORKSPACE/build_output/
if [ -d log ];then
- tar -czvf log-$(date -u +"%Y-%m-%d_%H-%M-%S").tar.gz log
+ tar -czvf log-${time_stamp}.tar.gz log
+ echo "uploading debugging logs to artifacts"
+ gsutil cp -r log-*.tar.gz gs://artifacts.opnfv.org/kvmfornfv/\
+ kvmfornfv_verify_debug_logs_${time_stamp} > \
+ $WORKSPACE/build_output/gsutil.log 2>&1
+ echo -e "Download the logs from artifacts using below for debugging\n
+ http://artifacts.opnfv.org/kvmfornfv/kvmfornfv_verify_debug_logs_${time_stamp}"
fi
exit $exitCode
}