diff options
author | kalyanreddy <reddyx.gundarapu@intel.com> | 2017-04-12 17:48:25 +0530 |
---|---|---|
committer | kalyanreddy <reddyx.gundarapu@intel.com> | 2017-05-15 12:39:57 +0530 |
commit | 156570aeb2bd567890da31e4efecbe48d7129b8b (patch) | |
tree | f151b496e42b383cdfa3e36acb67e766f9f588dd /ci/envs | |
parent | f9bc056239a4bad52403e96ae6b4d14eaedd012a (diff) |
Optimizing the code and uploading ftrace logs to artifacts
This patch is used to exclude execution of disable_trace.sh as
ftrace will be disabled during post-execution of cyclictest
through yardstick. Also includes uploading verify logs to
artifacts when ftrace is enabled for debugging.
Change-Id: I4674f2b9c03274eb2a96b3258a718c9f46419022
Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
Diffstat (limited to 'ci/envs')
-rwxr-xr-x | ci/envs/host-config | 9 |
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 } |