Blame SOURCES/libvirt-tests-rename-hugepages-pages8-into-hugepages-nodeset-nonexist.patch

982648
From 172c5b605b5f0cc5145a44e3aa7603482a2e3817 Mon Sep 17 00:00:00 2001
982648
Message-Id: <172c5b605b5f0cc5145a44e3aa7603482a2e3817@dist-git>
982648
From: Pavel Hrdina <phrdina@redhat.com>
982648
Date: Mon, 13 Aug 2018 18:16:17 +0200
982648
Subject: [PATCH] tests: rename hugepages-pages8 into
982648
 hugepages-nodeset-nonexist
982648
MIME-Version: 1.0
982648
Content-Type: text/plain; charset=UTF-8
982648
Content-Transfer-Encoding: 8bit
982648
982648
Remove unnecessary XML elements as well.
982648
982648
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
982648
(cherry picked from commit 67cffcbbdb4a7dcdc10681695e00615ffae8e726)
982648
982648
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1591235
982648
982648
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
982648
Reviewed-by: Ján Tomko <jtomko@redhat.com>
982648
---
982648
 ...es-pages8.xml => hugepages-nodeset-nonexist.xml} | 13 +------------
982648
 tests/qemuxml2argvtest.c                            |  7 ++++---
982648
 2 files changed, 5 insertions(+), 15 deletions(-)
982648
 rename tests/qemuxml2argvdata/{hugepages-pages8.xml => hugepages-nodeset-nonexist.xml} (64%)
982648
982648
diff --git a/tests/qemuxml2argvdata/hugepages-pages8.xml b/tests/qemuxml2argvdata/hugepages-nodeset-nonexist.xml
982648
similarity index 64%
982648
rename from tests/qemuxml2argvdata/hugepages-pages8.xml
982648
rename to tests/qemuxml2argvdata/hugepages-nodeset-nonexist.xml
982648
index 4cf4c1a8ad..477d3f1f2b 100644
982648
--- a/tests/qemuxml2argvdata/hugepages-pages8.xml
982648
+++ b/tests/qemuxml2argvdata/hugepages-nodeset-nonexist.xml
982648
@@ -19,23 +19,12 @@
982648
   <on_crash>destroy</on_crash>
982648
   <devices>
982648
     <emulator>/usr/bin/qemu-system-i686</emulator>
982648
-    <disk type='block' device='disk'>
982648
-      <driver name='qemu' type='raw'/>
982648
-      <source dev='/dev/HostVG/QEMUGuest1'/>
982648
-      <target dev='hda' bus='ide'/>
982648
-      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
982648
-    </disk>
982648
     <controller type='usb' index='0'>
982648
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
982648
     </controller>
982648
-    <controller type='ide' index='0'>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
982648
-    </controller>
982648
     <controller type='pci' index='0' model='pci-root'/>
982648
     <input type='mouse' bus='ps2'/>
982648
     <input type='keyboard' bus='ps2'/>
982648
-    <memballoon model='virtio'>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
982648
-    </memballoon>
982648
+    <memballoon model='none'/>
982648
   </devices>
982648
 </domain>
982648
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
982648
index f8fbca1806..d4251eff3e 100644
982648
--- a/tests/qemuxml2argvtest.c
982648
+++ b/tests/qemuxml2argvtest.c
982648
@@ -959,6 +959,10 @@ mymain(void)
982648
     DO_TEST("hugepages-default", NONE);
982648
     DO_TEST("hugepages-default-2M", NONE);
982648
     DO_TEST("hugepages-default-system-size", NONE);
982648
+    DO_TEST_FAILURE("hugepages-nodeset-nonexist",
982648
+                    QEMU_CAPS_DEVICE_PC_DIMM,
982648
+                    QEMU_CAPS_OBJECT_MEMORY_FILE,
982648
+                    QEMU_CAPS_OBJECT_MEMORY_FILE_DISCARD);
982648
     DO_TEST("hugepages-numa-default",
982648
             QEMU_CAPS_OBJECT_MEMORY_FILE);
982648
     DO_TEST("hugepages-numa-default-2M",
982648
@@ -980,9 +984,6 @@ mymain(void)
982648
             QEMU_CAPS_OBJECT_MEMORY_RAM,
982648
             QEMU_CAPS_OBJECT_MEMORY_FILE);
982648
     DO_TEST_PARSE_ERROR("hugepages-memaccess-invalid", NONE);
982648
-    DO_TEST_FAILURE("hugepages-pages8",
982648
-                    QEMU_CAPS_DEVICE_PC_DIMM, QEMU_CAPS_OBJECT_MEMORY_FILE,
982648
-                    QEMU_CAPS_OBJECT_MEMORY_FILE_DISCARD);
982648
     DO_TEST("hugepages-memaccess", QEMU_CAPS_OBJECT_MEMORY_FILE,
982648
             QEMU_CAPS_OBJECT_MEMORY_RAM, QEMU_CAPS_DEVICE_PC_DIMM,
982648
             QEMU_CAPS_NUMA);
982648
-- 
982648
2.18.0
982648