Merge "[fuel-plugin] Employ dedicated reboot task"
[kvmfornfv.git] / ci / envs / host-config
index a6beb06..4742cc4 100755 (executable)
@@ -14,7 +14,7 @@ numa_node=1
 huge_pages=2
 
 # QEMU executable path and number of cpus for guest
-qemu=/usr/libexec/qemu-kvm
+qemu=/usr/local/bin/qemu-system-x86_64
 guest_cpus=2
 
 # Isolated cpus for nfv, must be given as a range '-' and Numa node1 CPU's should be considered
@@ -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
+}
+