From 7d47523bb0179bd82d4096f70499127d0bd71692 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Fri, 24 Sep 2021 08:31:54 +0200 Subject: [PATCH] sanitytest: Add virNetworkCreateXMLFlags() to list of name fixups When checking whether each C API is exported to Python and vice versa the sanitytest script is doing some name fixing. For instance virNetworkCreateXML() is translated into virConnect.networkCreateXML(). However, we have new C API on the way: virNetworkCreateXMLFlags() which is not on the list for these name fixups. Add it there. Mind you, the python code generator works just fine because generator.py:1082 compares just the prefix. Signed-off-by: Michal Privoznik --- sanitytest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanitytest.py b/sanitytest.py index dc3796b..5b5ad68 100644 --- a/sanitytest.py +++ b/sanitytest.py @@ -253,7 +253,8 @@ for name, (klass, func, cname) in sorted(basicklassmap.items()): "LookupByMACString", "LookupByUsage", "LookupByVolume", "LookupByTargetPath", "LookupSCSIHostByWWN", "LookupByPortDev", "Restore", "RestoreFlags", - "SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags"]: + "SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags", + "CreateXMLFlags"]: if klass != "virDomain": func = klass[3:] + func