mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
tests: Print XML file name in verbose CPU test
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.
This commit is contained in:
parent
5e31e71365
commit
23cf79f07e
@ -180,6 +180,8 @@ cpuTestCompareXML(const char *arch,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (STRNEQ(expected, actual)) {
|
if (STRNEQ(expected, actual)) {
|
||||||
|
if (virTestGetVerbose())
|
||||||
|
fprintf(stderr, "\nCompared to %s-%s.xml", arch, name);
|
||||||
virtTestDifference(stderr, expected, actual);
|
virtTestDifference(stderr, expected, actual);
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user