[Pkg-libvirt-commits] [libguestfs] 137/233: tests/disks: skip test-qemu-drive-libvirt.sh if libvirt is < 1.1.3

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:11:49 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit 4310f8f1753dc923ba5012f243014f54709f30fb
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Mon Jan 27 16:33:22 2014 +0100

    tests/disks: skip test-qemu-drive-libvirt.sh if libvirt is < 1.1.3
    
    This test relies on the <test:runstate> element in the domain XML, which
    has been introduced in libvirt 1.1.3.
---
 tests/disks/test-qemu-drive-libvirt.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/disks/test-qemu-drive-libvirt.sh b/tests/disks/test-qemu-drive-libvirt.sh
index e85c249..8467fe4 100755
--- a/tests/disks/test-qemu-drive-libvirt.sh
+++ b/tests/disks/test-qemu-drive-libvirt.sh
@@ -26,6 +26,16 @@ if [ -z "$abs_srcdir" ]; then
     exit 1
 fi
 
+if [ ! -x ../../src/libvirt-is-version ]; then
+    echo "$0: test skipped because libvirt-is-version is not built yet"
+    exit 77
+fi
+
+if ! ../../src/libvirt-is-version 1 1 3; then
+    echo "$0: test skipped because libvirt is too old (< 1.1.3)"
+    exit 77
+fi
+
 guestfish="\
   ../../fish/guestfish -c test://$abs_srcdir/test-qemu-drive-libvirt.xml"
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list