[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2] iotests/028: Fix for long $TEST_DIRs
From: |
Thomas Huth |
Subject: |
Re: [PATCH v2] iotests/028: Fix for long $TEST_DIRs |
Date: |
Fri, 11 Oct 2019 14:36:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 11/10/2019 14.18, Max Reitz wrote:
> For long test image paths, the order of the "Formatting" line and the
> "(qemu)" prompt after a drive_backup HMP command may be reversed. In
> fact, the interaction between the prompt and the line may lead to the
> "Formatting" to being greppable at all after "read"-ing it (if the
> prompt injects an IFS character into the "Formatting" string).
>
> So just wait until we get a prompt. At that point, the block job must
> have been started, so "info block-jobs" will only return "No active
> jobs" once it is done.
>
> Reported-by: Thomas Huth <address@hidden>
> Signed-off-by: Max Reitz <address@hidden>
> ---
> v2:
> - Fix another kind of race...
Thanks, that fixes the issue for me!
Tested-by: Thomas Huth <address@hidden>