diff options
author | Jiang, Yunhong <yunhong.jiang@intel.com> | 2017-02-16 18:00:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-02-16 18:00:47 +0000 |
commit | 48f1b1f5298bc4960f261df412315d6e15897c43 (patch) | |
tree | ad2e2861ebfb25532a377a23f76e4c0fcbebac68 /ci/envs/host-config | |
parent | 881aa3fcf152088440444d6f4296eaac3783801c (diff) | |
parent | be208cb48be4f4db438ce27be15e1f6166c26910 (diff) |
Merge "Enabling ftrace for kernel debugging."
Diffstat (limited to 'ci/envs/host-config')
-rwxr-xr-x | ci/envs/host-config | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ci/envs/host-config b/ci/envs/host-config index 0f77b7ac5..4742cc422 100755 --- a/ci/envs/host-config +++ b/ci/envs/host-config @@ -33,3 +33,14 @@ done #Isolated cpus from host_isolcpus range to run Stress tool stress_isolcpus=${first}-${last} echo "Stress tool runs on $stress_isolcpus" + +#Tar the log files generated during testcase execution. +function err_exit { + exitCode=$1 + cd $WORKSPACE/build_output/ + if [ -d log ];then + tar -czvf log-$(date -u +"%Y-%m-%d_%H-%M-%S").tar.gz log + fi + exit $exitCode +} + |