From 2fc011fe0489fdc7c1f094c40e84a2432bce6ca4 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 16 Feb 2016 11:59:08 -0500 Subject: [PATCH] tests: qemuargv2xml: Drop memory XML blanking The memory XML blanking is only there to avoid the unit= churn that was added by default a long time ago. Drop the blanking, switch over to using the standard comparison helpers, and regenerate the output with VIR_TEST_REGENERATE_OUTPUT. --- .../qemuargv2xml-boot-cdrom.xml | 4 +-- .../qemuargv2xml-boot-floppy.xml | 4 +-- .../qemuargv2xml-boot-network.xml | 4 +-- .../qemuargv2xml-clock-localtime.xml | 4 +-- .../qemuargv2xml-clock-utc.xml | 4 +-- .../qemuargv2xml-console-compat.xml | 4 +-- .../qemuargv2xml-disk-cdrom-empty.xml | 4 +-- .../qemuargv2xml-disk-cdrom.xml | 4 +-- .../qemuargv2xml-disk-drive-boot-cdrom.xml | 4 +-- .../qemuargv2xml-disk-drive-boot-disk.xml | 4 +-- .../qemuargv2xml-disk-drive-cache-v2-none.xml | 4 +-- .../qemuargv2xml-graphics-vnc-policy.xml | 4 +-- .../qemuargv2xml-graphics-vnc-sasl.xml | 4 +-- .../qemuargv2xml-graphics-vnc-socket.xml | 4 +-- .../qemuargv2xml-graphics-vnc-tls.xml | 4 +-- .../qemuargv2xml-graphics-vnc-websocket.xml | 4 +-- .../qemuargv2xml-graphics-vnc.xml | 4 +-- .../qemuargv2xml-hostdev-pci-address.xml | 4 +-- .../qemuargv2xml-hyperv-panic.xml | 4 +-- .../qemuargv2xmldata/qemuargv2xml-hyperv.xml | 4 +-- .../qemuargv2xml-kvm-features.xml | 4 +-- .../qemuargv2xml-kvmclock.xml | 4 +-- ...muargv2xml-machine-aeskeywrap-off-argv.xml | 4 +-- ...emuargv2xml-machine-aeskeywrap-on-argv.xml | 4 +-- .../qemuargv2xml-machine-core-off.xml | 4 +-- .../qemuargv2xml-machine-core-on.xml | 4 +-- ...muargv2xml-machine-deakeywrap-off-argv.xml | 4 +-- ...emuargv2xml-machine-deakeywrap-on-argv.xml | 4 +-- ...qemuargv2xml-machine-keywrap-none-argv.xml | 4 +-- .../qemuargv2xml-misc-disable-s3.xml | 4 +-- .../qemuargv2xml-misc-disable-suspends.xml | 4 +-- .../qemuargv2xml-misc-enable-s4.xml | 4 +-- .../qemuargv2xml-misc-no-reboot.xml | 4 +-- .../qemuargv2xml-net-eth-ifname.xml | 4 +-- .../qemuargv2xmldata/qemuargv2xml-net-eth.xml | 4 +-- .../qemuargv2xml-nosharepages.xml | 4 +-- .../qemuargv2xml-parallel-tcp.xml | 4 +-- .../qemuargv2xml-reboot-timeout-disabled.xml | 4 +-- .../qemuargv2xml-reboot-timeout-enabled.xml | 4 +-- .../qemuargv2xml-serial-dev.xml | 4 +-- .../qemuargv2xml-serial-tcp-telnet.xml | 4 +-- .../qemuargv2xml-serial-tcp.xml | 4 +-- .../qemuargv2xml-serial-vc.xml | 4 +-- .../qemuargv2xml-watchdog.xml | 4 +-- tests/qemuargv2xmltest.c | 25 +++---------------- 45 files changed, 91 insertions(+), 110 deletions(-) diff --git a/tests/qemuargv2xmldata/qemuargv2xml-boot-cdrom.xml b/tests/qemuargv2xmldata/qemuargv2xml-boot-cdrom.xml index 9c0e667f7c..31afdc551f 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-boot-cdrom.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-boot-cdrom.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-boot-floppy.xml b/tests/qemuargv2xmldata/qemuargv2xml-boot-floppy.xml index 390bc67404..13137c57a8 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-boot-floppy.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-boot-floppy.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-boot-network.xml b/tests/qemuargv2xmldata/qemuargv2xml-boot-network.xml index ad421dae9f..cc0607d11a 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-boot-network.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-boot-network.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-clock-localtime.xml b/tests/qemuargv2xmldata/qemuargv2xml-clock-localtime.xml index 642d2764ff..b55515a93e 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-clock-localtime.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-clock-localtime.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-clock-utc.xml b/tests/qemuargv2xmldata/qemuargv2xml-clock-utc.xml index 9da4df0de3..23fc792467 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-clock-utc.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-clock-utc.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-console-compat.xml b/tests/qemuargv2xmldata/qemuargv2xml-console-compat.xml index 3eaeffab83..7be7259172 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-console-compat.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-console-compat.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom-empty.xml b/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom-empty.xml index 705c493fac..5b47754598 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom-empty.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom-empty.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom.xml b/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom.xml index 04f497633b..647a4d09aa 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-disk-cdrom.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-cdrom.xml b/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-cdrom.xml index 80a6978513..e4d78ec7ea 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-cdrom.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-cdrom.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-disk.xml b/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-disk.xml index 809eb80f40..2202eba43e 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-disk.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-boot-disk.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-cache-v2-none.xml b/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-cache-v2-none.xml index 2ee3118bf8..69f3f1c737 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-cache-v2-none.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-disk-drive-cache-v2-none.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-policy.xml b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-policy.xml index 1c76ddc81a..46f06a8c08 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-policy.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-policy.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-sasl.xml b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-sasl.xml index e350142805..a856edcb98 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-sasl.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-sasl.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-socket.xml b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-socket.xml index de70bc4835..8fe4133db4 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-socket.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-socket.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-tls.xml b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-tls.xml index e350142805..a856edcb98 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-tls.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-tls.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-websocket.xml b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-websocket.xml index afa4b5a76b..25e3badfd9 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-websocket.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc-websocket.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc.xml b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc.xml index 331346908a..256c9b5be1 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-graphics-vnc.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-hostdev-pci-address.xml b/tests/qemuargv2xmldata/qemuargv2xml-hostdev-pci-address.xml index 937238afa3..c898523ae5 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-hostdev-pci-address.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-hostdev-pci-address.xml @@ -1,8 +1,8 @@ QEMUGuest2 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-hyperv-panic.xml b/tests/qemuargv2xmldata/qemuargv2xml-hyperv-panic.xml index 0cafc07678..e549e051a9 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-hyperv-panic.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-hyperv-panic.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 6 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-hyperv.xml b/tests/qemuargv2xmldata/qemuargv2xml-hyperv.xml index 2b8f332a6b..5a19af0f0e 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-hyperv.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-hyperv.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 6 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-kvm-features.xml b/tests/qemuargv2xmldata/qemuargv2xml-kvm-features.xml index 883759619d..840e3e29c5 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-kvm-features.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-kvm-features.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 6 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-kvmclock.xml b/tests/qemuargv2xmldata/qemuargv2xml-kvmclock.xml index 15b474babc..ae8ccc9a1e 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-kvmclock.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-kvmclock.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 6 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-off-argv.xml b/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-off-argv.xml index 0975d4a251..1658e12512 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-off-argv.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-off-argv.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-on-argv.xml b/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-on-argv.xml index 8aa8f8eea7..3d676aaba0 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-on-argv.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-machine-aeskeywrap-on-argv.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-machine-core-off.xml b/tests/qemuargv2xmldata/qemuargv2xml-machine-core-off.xml index be84ca4c76..394880d6aa 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-machine-core-off.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-machine-core-off.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-machine-core-on.xml b/tests/qemuargv2xmldata/qemuargv2xml-machine-core-on.xml index 58784babfa..26183bb518 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-machine-core-on.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-machine-core-on.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-off-argv.xml b/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-off-argv.xml index 90b6d9f670..f3bc8afcd1 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-off-argv.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-off-argv.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-on-argv.xml b/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-on-argv.xml index 76a6a51427..1e0660f68d 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-on-argv.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-machine-deakeywrap-on-argv.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-machine-keywrap-none-argv.xml b/tests/qemuargv2xmldata/qemuargv2xml-machine-keywrap-none-argv.xml index 0a963a1d65..6acee072fa 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-machine-keywrap-none-argv.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-machine-keywrap-none-argv.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-s3.xml b/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-s3.xml index 1545064e38..2efe9ea2db 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-s3.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-s3.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-suspends.xml b/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-suspends.xml index f6ebba9ffa..5c7795788f 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-suspends.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-misc-disable-suspends.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-misc-enable-s4.xml b/tests/qemuargv2xmldata/qemuargv2xml-misc-enable-s4.xml index 089622cc74..a765caeb50 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-misc-enable-s4.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-misc-enable-s4.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-misc-no-reboot.xml b/tests/qemuargv2xmldata/qemuargv2xml-misc-no-reboot.xml index 6dba3159b4..0a7299f237 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-misc-no-reboot.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-misc-no-reboot.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-net-eth-ifname.xml b/tests/qemuargv2xmldata/qemuargv2xml-net-eth-ifname.xml index d1810b57d9..7527c60b6d 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-net-eth-ifname.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-net-eth-ifname.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-net-eth.xml b/tests/qemuargv2xmldata/qemuargv2xml-net-eth.xml index 5e88efba29..ee72830b08 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-net-eth.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-net-eth.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-nosharepages.xml b/tests/qemuargv2xmldata/qemuargv2xml-nosharepages.xml index 021642aaef..ebb84ab03c 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-nosharepages.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-nosharepages.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219200 - 219200 + 220160 + 220160 diff --git a/tests/qemuargv2xmldata/qemuargv2xml-parallel-tcp.xml b/tests/qemuargv2xmldata/qemuargv2xml-parallel-tcp.xml index 99d2110b21..b2fa9f256c 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-parallel-tcp.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-parallel-tcp.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-disabled.xml b/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-disabled.xml index 8fa2a7e451..29ddd9fec6 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-disabled.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-disabled.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 6 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-enabled.xml b/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-enabled.xml index 92707f4e1a..1d7f6f1499 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-enabled.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-reboot-timeout-enabled.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 6 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-serial-dev.xml b/tests/qemuargv2xmldata/qemuargv2xml-serial-dev.xml index aa03ab814e..e44528da6c 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-serial-dev.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-serial-dev.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp-telnet.xml b/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp-telnet.xml index 48037bb19a..5cde307443 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp-telnet.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp-telnet.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp.xml b/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp.xml index ba0c2895f5..2a431848f5 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-serial-tcp.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-serial-vc.xml b/tests/qemuargv2xmldata/qemuargv2xml-serial-vc.xml index 69ce1ba224..7cded6f0ea 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-serial-vc.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-serial-vc.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmldata/qemuargv2xml-watchdog.xml b/tests/qemuargv2xmldata/qemuargv2xml-watchdog.xml index eb7ed9973f..aac3e7269f 100644 --- a/tests/qemuargv2xmldata/qemuargv2xml-watchdog.xml +++ b/tests/qemuargv2xmldata/qemuargv2xml-watchdog.xml @@ -1,8 +1,8 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 - 219100 - 219100 + 219136 + 219136 1 hvm diff --git a/tests/qemuargv2xmltest.c b/tests/qemuargv2xmltest.c index 8e0e71100d..48c83ea3da 100644 --- a/tests/qemuargv2xmltest.c +++ b/tests/qemuargv2xmltest.c @@ -21,15 +21,6 @@ static virQEMUDriver driver; -static int blankProblemElements(char *data) -{ - if (virtTestClearLineRegex("[[:digit:]]+", data) < 0 || - virtTestClearLineRegex("[[:digit:]]+", - data) < 0) - return -1; - return 0; -} - static int testSanitizeDef(virDomainDefPtr vmdef) { size_t i = 0; @@ -61,11 +52,10 @@ typedef enum { FLAG_EXPECT_WARNING = 1 << 0, } virQemuXML2ArgvTestFlags; -static int testCompareXMLToArgvFiles(const char *xml, +static int testCompareXMLToArgvFiles(const char *xmlfile, const char *cmdfile, virQemuXML2ArgvTestFlags flags) { - char *expectxml = NULL; char *actualxml = NULL; char *cmd = NULL; char *log = NULL; @@ -74,8 +64,6 @@ static int testCompareXMLToArgvFiles(const char *xml, if (virtTestLoadFile(cmdfile, &cmd) < 0) goto fail; - if (virtTestLoadFile(xml, &expectxml) < 0) - goto fail; if (!(vmdef = qemuParseCommandLineString(driver.caps, driver.xmlopt, cmd, NULL, NULL, NULL))) @@ -108,26 +96,19 @@ static int testCompareXMLToArgvFiles(const char *xml, goto fail; if (!virDomainDefCheckABIStability(vmdef, vmdef)) { - VIR_TEST_DEBUG("ABI stability check failed on %s", xml); + VIR_TEST_DEBUG("ABI stability check failed on %s", xmlfile); goto fail; } if (!(actualxml = virDomainDefFormat(vmdef, driver.caps, 0))) goto fail; - if (blankProblemElements(expectxml) < 0 || - blankProblemElements(actualxml) < 0) + if (virtTestCompareToFile(actualxml, xmlfile) < 0) goto fail; - if (STRNEQ(expectxml, actualxml)) { - virtTestDifference(stderr, expectxml, actualxml); - goto fail; - } - ret = 0; fail: - VIR_FREE(expectxml); VIR_FREE(actualxml); VIR_FREE(cmd); VIR_FREE(log); -- GitLab