[Top][All Lists]

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

Re: [Qemu-devel] [Qemu-block] [PATCH v2] qemu-iotests: Make debugging py

From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v2] qemu-iotests: Make debugging python tests easier
Date: Mon, 18 May 2015 14:15:42 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, May 18, 2015 at 09:39:12AM +0800, Fam Zheng wrote:
> Adding "-d" option. The output goes to "tee" so it appears in your
> console. Also, raise the verbosity of unnitest runner.
> When testing a topic branch, it's possible that a bug introduced by a
> code change makes the python test case hang, with debug output, it is
> much easier to locate the problem.
> This can also be helpful if you want to watch the progress of a python
> test, it offers you a way to sense the speed of each test case method
> you're writing.
> Note: because there is no easy way to get *both* the verbose output and
> the output expected by ./check comparison, the case would always fail
> with an "output mismatch". The sole purpose of using this option is
> giving developers a quick way to debug when things go wrong.
> Signed-off-by: Fam Zheng <address@hidden>
> ---
>  tests/qemu-iotests/check      | 12 +++++++++---
>  tests/qemu-iotests/common     |  6 ++++++
>  tests/qemu-iotests/iotests.py | 14 +++++++++++---
>  3 files changed, 26 insertions(+), 6 deletions(-)

Reviewed-by: Stefan Hajnoczi <address@hidden>

Attachment: pgpKUIKigZ78R.pgp
Description: PGP signature

reply via email to

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