Re: PATCH: Make test suite debug mode more friendly

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

 



On Fri, Apr 18, 2008 at 01:28:55AM +0100, Daniel P. Berrange wrote:
> When the test suites fail, we have a DEBUG_TESTS=1 environment variable
> which can be set to show the full XML doc or string pair that failed to
> match. Unfortunately these docs can be quite large, so it is hard to
> spot the difference between the actual and expected output.
> 
> So this patch introduces a virtTestDifference(actual, expect)  method
> which will trim the head & tail of the actual & expected strings until
> the point at which they differ. This gives immediate clear feedback on
> where the bug is
> 
> Second, it will enumerate each test condition & pretty print align things
> a little better.

  Great ! Going though the diffs can be really painful at times +1

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]