[Top][All Lists]

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

Re: [Qemu-devel] [PATCH 00/17] iotests: Fix iotests for weird formats/op

From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH 00/17] iotests: Fix iotests for weird formats/options
Date: Thu, 23 Nov 2017 15:24:38 +0800
User-agent: Mutt/1.9.1 (2017-09-22)

On Thu, 11/23 03:08, Max Reitz wrote:
> (I hate to write Python tests because the boilerplate seems so large and
>  the debugging is so hard.  But there is test 194 which shows that it is
>  possible to write simple bash-like tests as well--and that is how I
>  should probably write tests from now on.)

If the boilerplate means copy&paste from another test it is not a big problem;
if you really mean it's more cumbersome than bash to write test code, I think we
can try new ways to exploit Python's expressiveness. 2c93c5cb43 and f4844ac0ad
are good examples.

So what do you think about debugging? IMO the biggest problem is the less
verbose reference output, and lack of a separate logging channel. We can and
should improve that, even for existing scripts.

And yes, the 194 style is actually better than "iotests.QMPTestCase" ones.


reply via email to

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