test: qemu: Fix qemu monitor test utils to allow testing HMP
test: qemu: Fix qemu monitor test utils to allow testing HMP

qemu HMP commands sent by libvirt are terminated just by a '\r'. The
fake monitor used in tests wasn't prepared to handle this and the
communication would hang on an attempt to do a HMP conversation.

Add a special case for handling commands separated by \r in case HMP is
used.

zippy2/libvirt,crobinso/libvirt,agx/libvirt,eskultety/libvirt,eskultety/libvirt,rlaager/libvirt,olafhering/libvirt,jfehlig/libvirt,andreabolognani/libvirt,nertpinx/libvirt,rlaager/libvirt,zippy2/libvirt,olafhering/libvirt,datto/libvirt,jardasgit/libvirt,eskultety/libvirt,taget/libvirt,rlaager/libvirt,olafhering/libvirt,andreabolognani/libvirt,libvirt/libvirt,jfehlig/libvirt,datto/libvirt,zippy2/libvirt,taget/libvirt,VenkatDatta/libvirt,datto/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,taget/libvirt,jfehlig/libvirt,agx/libvirt,jardasgit/libvirt,rlaager/libvirt,taget/libvirt,zippy2/libvirt,eskultety/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jardasgit/libvirt,rlaager/libvirt,nertpinx/libvirt,agx/libvirt,nertpinx/libvirt,jardasgit/libvirt,crobinso/libvirt,VenkatDatta/libvirt,libvirt/libvirt,jfehlig/libvirt,crobinso/libvirt,andreabolognani/libvirt,crobinso/libvirt,libvirt/libvirt,fabianfreyer/libvirt,libvirt/libvirt,olafhering/libvirt,agx/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,VenkatDatta/libvirt,datto/libvirt,fabianfreyer/libvirt,taget/libvirt,agx/libvirt,VenkatDatta/libvirt,eskultety/libvirt,datto/libvirt,jardasgit/libvirt