Enabling ftrace for kernel debugging.
[kvmfornfv.git] / ci / envs / host-config
index 0f77b7a..4742cc4 100755 (executable)
@@ -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
+}
+