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 <th...@redhat.com>
> Signed-off-by: Max Reitz <mre...@redhat.com>
> ---
> v2:
> - Fix another kind of race...

Thanks, that fixes the issue for me!

Tested-by: Thomas Huth <th...@redhat.com>

Reply via email to