[Pkg-libvirt-commits] [libguestfs] 170/384: aarch64: python: Skip test that requires IDE.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:56:48 UTC 2015


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

bengen pushed a commit to branch experimental
in repository libguestfs.

commit f45b6928c5339321dc99ef66ca9fe93e10e1580d
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Jan 20 07:35:11 2015 +0000

    aarch64: python: Skip test that requires IDE.
    
    This test launches a dummy guest using IDE.  Aarch64 doesn't support
    IDE, and because it also doesn't support PCI (virtio-mmio instead)
    it's hard to formulate libvirt XML that will work on both x86 and
    virtio-mmio.
    
    Since this bug is not architecture specific (RHBZ#912499), skip it on
    non-x86.  The test will print:
    
      skipping test: arch is not x86 and does not support IDE
---
 python/t/820-rhbz912499.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/python/t/820-rhbz912499.py b/python/t/820-rhbz912499.py
index 33b63e8..de6d1d3 100644
--- a/python/t/820-rhbz912499.py
+++ b/python/t/820-rhbz912499.py
@@ -24,6 +24,7 @@ import random
 import string
 import re
 import os
+import platform
 import guestfs
 
 try:
@@ -34,11 +35,18 @@ except:
 
 # If the backend is not libvirt, skip the test.
 backend = guestfs.GuestFS().get_backend()
-re = re.compile ("^libvirt")
-if not re.match (backend):
+rex = re.compile ("^libvirt")
+if not rex.match (backend):
     print "skipping test: backend is not libvirt"
     exit (77)
 
+# If the architecture doesn't support IDE, skip the test.
+machine = platform.machine ()
+rex = re.compile ("i.86")
+if machine != "x86_64" and not rex.match (machine):
+    print "skipping test: arch is not x86 and does not support IDE"
+    exit (77)
+
 conn = libvirt.open (None)
 
 # Check we're using the version of libvirt-python that has c_pointer() methods.

-- 
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