 +    local testname=$1
 +
 +    setenforce 0
-+    systemctl stop libvirtd virtlogd 2>/dev/null
-+    echo "Stop libvirtd virtlogd"
++    service libvirtd stop 2>/dev/null
++    echo "Stop libvirtd"
 +    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"
++    service libvirtd start 2>/dev/null
++    echo "Start libvirtd"
 +}
 +
 +reportfunc(){

From 51320ad3cd08605d590436a1a53aadd0f2f8e4f9 Mon Sep 17 00:00:00 2001
From: Luyao Huang <lhuang@redhat.com>
Date: Fri, 4 Nov 2016 11:02:40 +0800
Subject: [PATCH] Virtcov for v0.10.0~

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

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