summaryrefslogtreecommitdiffstats
path: root/ci/envs/host-config
diff options
context:
space:
mode:
authorkalyanreddy <reddyx.gundarapu@intel.com>2017-01-05 12:08:27 +0530
committerKalyan reddy Gundarapu <reddyx.gundarapu@intel.com>2017-02-08 14:35:31 +0000
commitbe208cb48be4f4db438ce27be15e1f6166c26910 (patch)
tree9e0927d58be2bc3482f2cc4ccfe5f2dc337b27d2 /ci/envs/host-config
parent2046178d894438b492d93f30941076ee7964f6ab (diff)
Enabling ftrace for kernel debugging.
This patch contains updated scripts to enable ftrace for kernel debugging and storing the log files to artifact repository. Change-Id: I81b8f987c2c214ca53a6e4502ad953a9adbc6be9 Signed-off-by: Gundarapu Kalyan Reddy <reddyx.gundarapu@intel.com>
Diffstat (limited to 'ci/envs/host-config')
-rwxr-xr-xci/envs/host-config11
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
+}
+