Blame SOURCES/0041-test-govirt-Add-display-node-to-vm-XMLs.patch

546e1e
From a2abf332bf99baf1d6b6a96d9153b44efdedf384 Mon Sep 17 00:00:00 2001
546e1e
From: "Eduardo Lima (Etrunko)" <etrunko@redhat.com>
546e1e
Date: Fri, 22 Jun 2018 18:18:53 -0300
546e1e
Subject: [PATCH] test-govirt: Add 'display' node to vm XMLs
546e1e
546e1e
Makes 'make distcheck' pass again. Test-govirt was failing since commit
546e1e
039c8d8, because the 'display' node is mandatory, but the return value
546e1e
of the function vm_set_display_from_xml() had been ignored.
546e1e
546e1e
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
546e1e
---
546e1e
 tests/test-govirt.c | 8 ++++++++
546e1e
 1 file changed, 8 insertions(+)
546e1e
546e1e
diff --git a/tests/test-govirt.c b/tests/test-govirt.c
546e1e
index 247a27a..7f2cd57 100644
546e1e
--- a/tests/test-govirt.c
546e1e
+++ b/tests/test-govirt.c
546e1e
@@ -194,9 +194,17 @@ static void test_govirt_list_duplicate_vms(void)
546e1e
     const char *vms_body = "<vms> \
546e1e
                               <vm href=\"api/vms/uuid0\" id=\"uuid0\"> \
546e1e
                                 <name>vm0</name> \
546e1e
+                                <display> \
546e1e
+                                    <type>spice</type> \
546e1e
+                                    <monitors>1</monitors> \
546e1e
+                                </display> \
546e1e
                               </vm> \
546e1e
                               <vm href=\"api/vms/uuid1\" id=\"uuid1\"> \
546e1e
                                 <name>vm0</name> \
546e1e
+                                <display> \
546e1e
+                                    <type>spice</type> \
546e1e
+                                    <monitors>1</monitors> \
546e1e
+                                </display> \
546e1e
                               </vm> \
546e1e
                             </vms>";
546e1e
 
546e1e
-- 
546e1e
2.14.4
546e1e