 +
 +startfunc(){
 +    preparefunc
-+    systemctl stop libvirtd virtlogd 2>/dev/null
-+    echo "Stop libvirtd virtlogd"
++    service libvirtd stop 2>/dev/null
++    echo "Stop libvirtd"
 +    lcov --directory "$WORKPATH" --zerocounters >/dev/null 2>&1
 +    echo "Clear exist gcda file"
-+    systemctl start libvirtd virtlogd 2>/dev/null
-+    echo "Start libvirtd virtlogd"
++    service libvirtd start 2>/dev/null
++    echo "Start libvirtd"
 +    gengcdafunc
 +    echo "create empty gcda file"
 +    echo "Done!"

+    local testname=$1
+
+    setenforce 0
+    systemctl stop libvirtd virtlogd 2>/dev/null
+    echo "Stop libvirtd virtlogd"
+    setenforce 1
+    lcov --capture --directory "$WORKPATH" --output-file /tmp/coverage.info --test-name "$testname" >/dev/null 2>&1
+    echo "Create coverage.info in tmp directory"
+    systemctl start libvirtd virtlogd 2>/dev/null
+    echo "Start libvirtd virtlogd"
+}
+
+reportfunc(){

From 088df627ac076870cbf6d251254ddbaf8d734778 Mon Sep 17 00:00:00 2001
From: Luyao Huang <lhuang@redhat.com>
Date: Thu, 17 Nov 2016 14:27:59 +0800
Subject: [PATCH] Virtcov for v0.10.2~

Signed-off-by: Luyao Huang <lhuang@redhat.com>
---
