aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/283
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2020-04-30 16:27:52 +0200
committerKevin Wolf <kwolf@redhat.com>2020-05-08 13:26:35 +0200
commit813cc2545b82409fd504509f0ba2e96fab6edb9e (patch)
tree50724de2476a39407cbe517aa7c8040cbc281196 /tests/qemu-iotests/283
parentc1eafd27b136b6717f8271e842372565d9b8c178 (diff)
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: a541fcc27c98b96da187c7d4573f3270f3ddd283 Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20200430142755.315494-2-kwolf@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/283')
-rw-r--r--tests/qemu-iotests/2836
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/qemu-iotests/283 b/tests/qemu-iotests/283
index e17b953333..383797ed62 100644
--- a/tests/qemu-iotests/283
+++ b/tests/qemu-iotests/283
@@ -74,7 +74,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',