qemu-block
[Top][All Lists]
Advanced

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

Re: [PATCH 14/14] iotests: make img_info_log() call qemu_img_log()


From: Hanna Reitz
Subject: Re: [PATCH 14/14] iotests: make img_info_log() call qemu_img_log()
Date: Thu, 17 Mar 2022 16:38:58 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 09.03.22 04:54, John Snow wrote:
Add configurable filters to qemu_img_log(), and re-write img_info_log()
to call into qemu_img_log() with a custom filter instead.

After this patch, every last call to qemu_img() is now guaranteed to
either have its return code checked for zero, OR have its output
actually visibly logged somewhere.

Signed-off-by: John Snow <jsnow@redhat.com>
---
  tests/qemu-iotests/iotests.py | 13 +++++++++----
  1 file changed, 9 insertions(+), 4 deletions(-)

From my POV, this is a regression because before this patch (not this series, though, admittedly), `img_info_log()` would throw an exception on error, and with patch 12 being as it is, it will revert to its pre-series behavior of not throwing an exception.  I prefer exceptions to failed reference output diffs, because an exception tells me which call failed.

Hanna




reply via email to

[Prev in Thread] Current Thread [Next in Thread]