Re: [PATCH 05/10] tests: use virtTestDifferenceFull in tests where we have output file

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

 



On Fri, Jan 08, 2016 at 11:19:04AM -0500, Cole Robinson wrote:
> On 01/08/2016 08:21 AM, Peter Krempa wrote:
> >>  
> >>      if (STRNEQ(expectxml, actualxml)) {
> >> -        virtTestDifference(stderr, expectxml, actualxml);
> >> +        virtTestDifferenceFull(stderr, expectxml, xml, actualxml, NULL);
> >>          goto fail;
> >>      }
> >>
> > 
> > I'm specially worried about this one since the argv parser is very old
> > and obsolete. I'd rather prefer if the regexes that postprocess the
> > output were tweaked or othe code mocked so that it gives deterministic
> > results at this point before this code is used.
> > 
> 
> Have we officially marked the argv parser as obsolete? News to me, but welcome
> IMO since it's a lot of rarely used code that's never been exhaustively
> covered. Always seemed like something that would be better suited as an
> external tool (written in a higher level language) since outside of probing
> qemu features it has very little overlap with the rest of libvirt.

While it is not complete, I dont think it is obsolete. Indeed it is used
by the QEMU driver facility for attaching to an existing running VM. These
are both things we added to try and help users converting from manually
written QEMU commands, to libvirt.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
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]