From be208cb48be4f4db438ce27be15e1f6166c26910 Mon Sep 17 00:00:00 2001 From: kalyanreddy Date: Thu, 5 Jan 2017 12:08:27 +0530 Subject: 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 --- ci/envs/host-config | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ci/envs/host-config') 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 +} + -- cgit 1.2.3-korg