[PATCH 12/12] testCompareXMLToArgvValidateSchema: Populate autoNodeset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We create a new 'vm' so we must also fake the nodeset.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tests/qemuxml2argvtest.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 662d0d5df6..8b2df07448 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -519,6 +519,7 @@ testCompareXMLToArgvValidateSchema(virQEMUDriverPtr drv,
 {
     g_auto(GStrv) args = NULL;
     g_autoptr(virDomainObj) vm = NULL;
+    qemuDomainObjPrivatePtr priv = NULL;
     size_t nargs = 0;
     size_t i;
     g_autoptr(GHashTable) schema = NULL;
@@ -546,6 +547,11 @@ testCompareXMLToArgvValidateSchema(virQEMUDriverPtr drv,
                                           NULL, parseFlags)))
         return -1;

+    priv = vm->privateData;
+
+    if (virBitmapParse("0-3", &priv->autoNodeset, 4) < 0)
+        return -1;
+
     if (!(cmd = testCompareXMLToArgvCreateArgs(drv, vm, migrateURI, info, flags,
                                                true)))
         return -1;
-- 
2.29.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux