Google
  Web www.spinics.net

[PATCH 1/6] tests: Print XML file name in verbose CPU test

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


It's not totally obvious that a failure in
    CPU guest data(x86): host/guest (models, pref="qemu64")
test means one needs to fix
    x86-host+guest,models,qemu64-result.xml
where the expected XML is stored. Better to provide a nice hint in
verbose mode for failed tests.
---
 tests/cputest.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/cputest.c b/tests/cputest.c
index 36b3eb4..5b7b951 100644
--- a/tests/cputest.c
+++ b/tests/cputest.c
@@ -180,6 +180,8 @@ cpuTestCompareXML(const char *arch,
         goto cleanup;
 
     if (STRNEQ(expected, actual)) {
+        if (virTestGetVerbose())
+            fprintf(stderr, "\nCompared to %s-%s.xml", arch, name);
         virtTestDifference(stderr, expected, actual);
         goto cleanup;
     }
-- 
1.7.8.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux

Google
  Web www.spinics.net