Re: [PATCH] qemufirmwaretest: Produce better message on error

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

 



On Tue, 2019-03-26 at 09:02 +0100, Michal Privoznik wrote:
> If qemuFirmwareFetchConfigs() returned more or less paths than

https://66.media.tumblr.com/c9eb5611a9f9c6a5cb7be6d5365afdf9/tumblr_ouaw1xYO8u1ruwssto2_500.gif

> expected all that we see is the following error message:
> 
>   Expected 5 paths, got 7
> 
> While it is technically correct (the best kind of correct), we
> can do better:
> 
>   Unexpected path (i=0). Expected /some/path got /some/other/path
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  tests/qemufirmwaretest.c | 15 +++++++--------
>  1 file changed, 7 insertions(+), 8 deletions(-)

Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>

-- 
Andrea Bolognani / Red Hat / Virtualization

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

  Powered by Linux