diff options
author | Vladimir Sementsov-Ogievskiy | 2020-12-16 07:17:01 +0100 |
---|---|---|
committer | Max Reitz | 2021-01-26 14:36:37 +0100 |
commit | 9126a2dc4bde9dd282edc44c5e714b62dbe94918 (patch) | |
tree | bcec09a8bf9a252fbfb865f09ca2f35ee85d92b2 | |
parent | qapi: block-stream: add "bottom" argument (diff) | |
download | qemu-9126a2dc4bde9dd282edc44c5e714b62dbe94918.tar.gz qemu-9126a2dc4bde9dd282edc44c5e714b62dbe94918.tar.xz qemu-9126a2dc4bde9dd282edc44c5e714b62dbe94918.zip |
iotests: 30: prepare to COR filter insertion by stream job
test_stream_parallel run parallel stream jobs, intersecting so that top
of one is base of another. It's OK now, but it would be a problem if
insert the filter, as one job will want to use another job's filter as
above_base node.
Correct thing to do is move to new interface: "bottom" argument instead
of base. This guarantees that jobs don't intersect by their actions.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20201216061703.70908-12-vsementsov@virtuozzo.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
-rwxr-xr-x | tests/qemu-iotests/030 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/qemu-iotests/030 b/tests/qemu-iotests/030 index 890784b116..f8a692432c 100755 --- a/tests/qemu-iotests/030 +++ b/tests/qemu-iotests/030 @@ -246,7 +246,9 @@ 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=1024) + result = self.vm.qmp('block-stream', device=node_name, + job_id=job_id, bottom=f'node{i-1}', + speed=1024) self.assert_qmp(result, 'return', {}) for job in pending_jobs: |