[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 3/3] iotests: modify test 040 to use JobRunner
From: |
John Snow |
Subject: |
Re: [PATCH v4 3/3] iotests: modify test 040 to use JobRunner |
Date: |
Thu, 14 May 2020 15:37:57 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 5/14/20 11:53 AM, Kevin Wolf wrote:
> Am 14.05.2020 um 04:25 hat John Snow geschrieben:
>> Instead of having somewhat reproduced it for itself.
>>
>> Signed-off-by: John Snow <address@hidden>
>
> I think you should pass auto_dismiss=True to the JobRunner, or (probably
> preferable) change prepare_and_start_job() to start the job with
> auto_dismiss=False.
>
> Kevin
>
okay, I'll try that out and see if I like it.
Wild tangents, as is my normal:
I also think it would be neat, in some sense, to provide a job creation
abstraction where creating the QMP command in python also creates the
runner with the right parameters based on how you initialized it.
I've not given these even a proper three minutes think, but some
generalized interface for managing the creation of jobs to use in
concert with the job runner would be slick.
(What reminds me of this is needing to remember and understand if I
started something with auto_dismiss or not, which jobs it defaults to
which for, etc. Streamlining the creation and runner could be slick for
faster test-writing in normative cases.)
- [PATCH v4 1/3] qmp.py: change event_wait to use a dict, (continued)
[PATCH v4 2/3] iotests: add JobRunner class, John Snow, 2020/05/13
[PATCH v4 3/3] iotests: modify test 040 to use JobRunner, John Snow, 2020/05/13