[Qemu-block] [PATCH v1 1/1] iotests: fix the actual-size in 191.out
The actual-size set in 191.out is wrong, which causes the test case failed and shall be 331776. The actual-size indicates the image's (e.g. t.qcow2.base) actual size defined by ImageInfo.actual_size. Signed-off-by: QingFeng Hao--- tests/qemu-iotests/191.out | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/qemu-iotests/191.out b/tests/qemu-iotests/191.out index 7bfcd2d..d9a9e54 100644 --- a/tests/qemu-iotests/191.out +++ b/tests/qemu-iotests/191.out @@ -47,7 +47,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -136,7 +136,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -225,7 +225,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -242,7 +242,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.mid", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -283,7 +283,7 @@ wrote 65536/65536 bytes at offset 1048576 "virtual-size": 393216, "filename": "TEST_DIR/t.qcow2.mid", "format": "file", -"actual-size": 397312, +"actual-size": 331776, "dirty-flag": false }, "iops_wr": 0, @@ -313,7 +313,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -351,7 +351,7 @@ wrote 65536/65536 bytes at offset 1048576 "virtual-size": 393216, "filename": "TEST_DIR/t.qcow2.base", "format": "file", -"actual-size": 397312, +"actual-size": 331776, "dirty-flag": false }, "iops_wr": 0, @@ -450,7 +450,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -540,7 +540,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -647,7 +647,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -685,7 +685,7 @@ wrote 65536/65536 bytes at offset 1048576 "virtual-size": 393216, "filename": "TEST_DIR/t.qcow2.base", "format": "file", -"actual-size": 397312, +"actual-size": 331776, "dirty-flag": false }, "iops_wr": 0, @@ -716,7 +716,7 @@ wrote 65536/65536 bytes at offset 1048576 "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536,
[Qemu-block] [PATCH v1 0/1] iotests: fix failed case 191
The actual-size 391312 in 191.out causes the test case 191 failed, after I changed it to be 331776, the test succeeds. The error output is: 191 - output mismatch (see 191.out.bad) --- tests/qemu-iotests/191.out 2017-10-08 02:59:56.346200313 +0200 +++ tests/qemu-iotests/191.out.bad 2017-10-13 05:06:01.476200313 +0200 @@ -47,7 +47,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -136,7 +136,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -225,7 +225,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -242,7 +242,7 @@ "filename": "TEST_DIR/t.qcow2.mid", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -283,7 +283,7 @@ "virtual-size": 393216, "filename": "TEST_DIR/t.qcow2.mid", "format": "file", -"actual-size": 397312, +"actual-size": 331776, "dirty-flag": false }, "iops_wr": 0, @@ -313,7 +313,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -351,7 +351,7 @@ "virtual-size": 393216, "filename": "TEST_DIR/t.qcow2.base", "format": "file", -"actual-size": 397312, +"actual-size": 331776, "dirty-flag": false }, "iops_wr": 0, @@ -450,7 +450,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -540,7 +540,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -647,7 +647,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { @@ -685,7 +685,7 @@ "virtual-size": 393216, "filename": "TEST_DIR/t.qcow2.base", "format": "file", -"actual-size": 397312, +"actual-size": 331776, "dirty-flag": false }, "iops_wr": 0, @@ -716,7 +716,7 @@ "filename": "TEST_DIR/t.qcow2.base", "cluster-size": 65536, "format": "qcow2", -"actual-size": 397312, +"actual-size": 331776, "format-specific": { "type": "qcow2", "data": { Thanks! QingFeng Hao (1): iotests: fix