[Pkg-libvirt-commits] [libvirt] 01/01: autopkgtests: check daemon restart and virtlogd
Guido Guenther
agx at moszumanska.debian.org
Mon Oct 24 19:29:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
agx pushed a commit to branch debian/sid
in repository libvirt.
commit 8785b7ca01f0cd7fef4b2d946d7755a7568055f9
Author: Guido Günther <agx at sigxcpu.org>
Date: Mon Oct 24 20:57:00 2016 +0200
autopkgtests: check daemon restart and virtlogd
---
debian/tests/smoke-lxc | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/debian/tests/smoke-lxc b/debian/tests/smoke-lxc
index 8141785..0109705 100755
--- a/debian/tests/smoke-lxc
+++ b/debian/tests/smoke-lxc
@@ -17,6 +17,12 @@ cleanup()
fi
}
+check_domain()
+{
+ virsh list | grep -qs "${DOMAIN}[[:space:]]\+running"
+ virsh lxc-enter-namespace --noseclabel ${DOMAIN} /bin/ls /bin/ls
+}
+
trap cleanup EXIT
virt-host-validate lxc
@@ -25,9 +31,14 @@ virsh capabilities | grep -qs 'emulator>/usr/lib/libvirt/libvirt_lxc'
virsh capabilities | grep -qs 'os_type>exe'
virt-xml-validate ${XML}
virsh define ${XML}
+rm -f /var/log/libvirt/lxc/sl.log
virsh start ${DOMAIN}
-virsh list | grep -qs "${DOMAIN}[[:space:]]\+running"
-virsh lxc-enter-namespace --noseclabel ${DOMAIN} /bin/ls /bin/ls
+# Check virtlogd is running
+grep -qs "starting up" /var/log/libvirt/lxc/sl.log
+check_domain
+# Make sure a restart doesn't termiante the domain
+/etc/init.d/libvirtd restart
+check_domain
virsh destroy ${DOMAIN}
virsh undefine ${DOMAIN}
CLEANED_UP=1
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git
More information about the Pkg-libvirt-commits
mailing list