From b0b5820efee7313b9471013821f2ec434bd87853 Mon Sep 17 00:00:00 2001 From: Kristina Hanicova Date: Tue, 20 Jul 2021 14:58:09 +0200 Subject: [PATCH] genericxml2xmltest: Modify cachetune test to include id I changed DO_TEST_DIFFERENT to DO_TEST, which allows us to remove the duplicate out file. I also added id attribute for domain element in order to parse it as a live XML ('cachetune id' is in the output of only live XMLs). Lastly I added id of cachetune to test its output value. Signed-off-by: Kristina Hanicova Reviewed-by: Michal Privoznik --- tests/genericxml2xmlindata/cachetune.xml | 8 +++--- tests/genericxml2xmloutdata/cachetune.xml | 34 ----------------------- tests/genericxml2xmltest.c | 2 +- 3 files changed, 5 insertions(+), 39 deletions(-) delete mode 100644 tests/genericxml2xmloutdata/cachetune.xml diff --git a/tests/genericxml2xmlindata/cachetune.xml b/tests/genericxml2xmlindata/cachetune.xml index 40259cf2ee..07e81999a5 100644 --- a/tests/genericxml2xmlindata/cachetune.xml +++ b/tests/genericxml2xmlindata/cachetune.xml @@ -1,16 +1,16 @@ - + QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 219136 219136 4 - - + + - + diff --git a/tests/genericxml2xmloutdata/cachetune.xml b/tests/genericxml2xmloutdata/cachetune.xml deleted file mode 100644 index f05cab70ff..0000000000 --- a/tests/genericxml2xmloutdata/cachetune.xml +++ /dev/null @@ -1,34 +0,0 @@ - - QEMUGuest1 - c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219136 - 219136 - 4 - - - - - - - - - - - - hvm - - - - destroy - restart - destroy - - /usr/bin/qemu-system-i386 - - - - - - - - diff --git a/tests/genericxml2xmltest.c b/tests/genericxml2xmltest.c index ac89422a32..17448a3465 100644 --- a/tests/genericxml2xmltest.c +++ b/tests/genericxml2xmltest.c @@ -214,7 +214,7 @@ mymain(void) DO_TEST("cachetune-small"); DO_TEST("cachetune-cdp"); - DO_TEST_DIFFERENT("cachetune"); + DO_TEST("cachetune"); DO_TEST_DIFFERENT("cachetune-extra-tunes"); DO_TEST_FULL("cachetune-colliding-allocs", false, true, TEST_COMPARE_DOM_XML2XML_RESULT_FAIL_PARSE);