diff options
| author | Daniel P. Berrangé | 2018-11-16 16:53:23 +0100 |
|---|---|---|
| committer | Eric Blake | 2018-11-19 18:16:46 +0100 |
| commit | b39b58d5d0da3e7057d7d636641018b0fc25139b (patch) | |
| tree | bfaa775e95e06fc6f09f51b5fce6b06b267fe8a1 /include/exec/user | |
| parent | tests: pull qemu-nbd iotest helpers into common.nbd file (diff) | |
| download | qemu-b39b58d5d0da3e7057d7d636641018b0fc25139b.tar.gz qemu-b39b58d5d0da3e7057d7d636641018b0fc25139b.tar.xz qemu-b39b58d5d0da3e7057d7d636641018b0fc25139b.zip | |
tests: check if qemu-nbd is still alive before waiting
If the qemu-nbd UNIX socket has not shown up, the tests will sleep a bit
and then check again repeatedly for up to 30 seconds. This is pointless
if the qemu-nbd process has quit due to an error, so check whether the
pid is still alive before waiting and retrying.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20181116155325.22428-5-berrange@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
