aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-07-16 15:28:29 +0200
committerKevin Wolf <kwolf@redhat.com>2020-07-17 14:20:57 +0200
commitf21f12936f9db6de4eddfcf9a086b6efd5b093cc (patch)
tree8954dd6cd3f9f2dd1cfc10efc8f77fbe2a5da4f8
parent3e018afbfe005a3448949bfe3954888b9d8460c4 (diff)
downloadqemu-f21f12936f9db6de4eddfcf9a086b6efd5b093cc.zip
qemu-f21f12936f9db6de4eddfcf9a086b6efd5b093cc.tar.gz
qemu-f21f12936f9db6de4eddfcf9a086b6efd5b093cc.tar.bz2
iotests/030: Reduce job speed to make race less likely
It can happen that the throttling of the stream job doesn't make it slow enough that we can be sure that it still exists when it is referenced again. Just use a much smaller speed to make this very unlikely to happen again. Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20200716132829.20127-1-kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
-rwxr-xr-xtests/qemu-iotests/0302
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030
index 256b2bf..31c0283 100755
--- a/tests/qemu-iotests/030
+++ b/tests/qemu-iotests/030
@@ -243,7 +243,7 @@ class TestParallelOps(iotests.QMPTestCase):
node_name = 'node%d' % i
job_id = 'stream-%s' % node_name
pending_jobs.append(job_id)
- result = self.vm.qmp('block-stream', device=node_name, job_id=job_id, base=self.imgs[i-2], speed=512*1024)
+ result = self.vm.qmp('block-stream', device=node_name, job_id=job_id, base=self.imgs[i-2], speed=1024)
self.assert_qmp(result, 'return', {})
for job in pending_jobs: