Re: [PATCH 10/20] qemumonitortestutils: Refactor the test helpers to allow reuse

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

 



On 07/30/2013 07:05 AM, Peter Krempa wrote:
> Refactor the test helpers to allow adding callbacks to verify the
> monitor responses instead of simple command name checking and clean up
> various parts to prepare for adding guest agent tests.
> ---
>  tests/qemumonitortestutils.c | 220 ++++++++++++++++++++++++-------------------
>  1 file changed, 121 insertions(+), 99 deletions(-)
> 

> @@ -512,7 +534,7 @@ qemuMonitorCommonTestInit(qemuMonitorTestPtr test)
>          goto error;
> 
>      if (virNetSocketAddIOCallback(test->client,
> -                                  VIR_EVENT_HANDLE_WRITABLE,
> +                                  test->outgoingLength > 0 ? VIR_EVENT_HANDLE_WRITABLE : VIR_EVENT_HANDLE_READABLE,

Long line.

Quite a bit of code, but looks like a reasonable refactor.  ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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