Skip to content
Snippets Groups Projects
Commit 4a0db6ba authored by Kevin Wolf's avatar Kevin Wolf Committed by Michael Roth
Browse files

iotests/283: Use consistent size for source and target


The test case forgot to specify the null-co size for the target node.
When adding a check to backup that both sizes match, this would fail
because of the size mismatch and not the behaviour that the test really
wanted to test.

Fixes: a541fcc2
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
Message-Id: <20200430142755.315494-2-kwolf@redhat.com>
Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
(cherry picked from commit 813cc254)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 0664ffac
Branches
Tags
No related merge requests found
......@@ -72,7 +72,11 @@ to check that crash is fixed :)
vm = iotests.VM()
vm.launch()
vm.qmp_log('blockdev-add', **{'node-name': 'target', 'driver': 'null-co'})
vm.qmp_log('blockdev-add', **{
'node-name': 'target',
'driver': 'null-co',
'size': size,
})
vm.qmp_log('blockdev-add', **{
'node-name': 'source',
......
{"execute": "blockdev-add", "arguments": {"driver": "null-co", "node-name": "target"}}
{"execute": "blockdev-add", "arguments": {"driver": "null-co", "node-name": "target", "size": 1048576}}
{"return": {}}
{"execute": "blockdev-add", "arguments": {"driver": "blkdebug", "image": {"driver": "null-co", "node-name": "base", "size": 1048576}, "node-name": "source"}}
{"return": {}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment