]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
iotests/283: Use consistent size for source and target
authorKevin Wolf <kwolf@redhat.com>
Thu, 30 Apr 2020 14:27:52 +0000 (16:27 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 25 Aug 2020 00:12:11 +0000 (19:12 -0500)
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>
(cherry picked from commit 813cc2545b82409fd504509f0ba2e96fab6edb9e)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/qemu-iotests/283
tests/qemu-iotests/283.out

index 55b7cff953e72790e5061793b41781d4363b7955..44de76effededb59940130b84171af34bbb68959 100644 (file)
@@ -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',
index daaf5828c18ee463671ec916989846f94c9f4b31..d8cff22cc191b92d399b0bc9f6cc468907dbbfaa 100644 (file)
@@ -1,4 +1,4 @@
-{"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": {}}