Skip to contentSkip to conversation

qemu-iotests: only run 071 on qcow2

PATCH Applied Stefan Hajnoczi 3 participants 3 messages Jan 29, 2014 – Jan 31, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-iotests: only run 071 on qcow2

The 071 test is designed for IMGFMT=qcow2 because it uses the l2_load blkdebug event. Its output filtering also assumes that IMGFMT is not raw since 071.out contains "format=raw" but IMGFMT=raw would filter the output to "format=IMGFMT".

Perhaps the test case can be rewritten to be more generic, but for now let's document that it was only supposed to work with qcow2.

---
 tests/qemu-iotests/071 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/071 +1 -1
index 2a22546..dbc07c6 100755
@@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 . ./common.rc
 . ./common.filter
 
-_supported_fmt generic
+_supported_fmt qcow2
 _supported_proto generic
 _supported_os Linux
 
Signature · 1 line
1.8.5.3
Reviewed-by Benoit Canet on v1 1/1
#1 lore raw
Quoted 30 lines · Stefan Hajnoczi

The 071 test is designed for IMGFMT=qcow2 because it uses the l2_load blkdebug event. Its output filtering also assumes that IMGFMT is not raw since 071.out contains "format=raw" but IMGFMT=raw would filter the output to "format=IMGFMT".

Perhaps the test case can be rewritten to be more generic, but for now let's document that it was only supposed to work with qcow2.

---
 tests/qemu-iotests/071 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/071 +1 -1
index 2a22546..dbc07c6 100755
@@ -38,7 +38,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 . ./common.rc
 . ./common.filter
 
-_supported_fmt generic
+_supported_fmt qcow2
 _supported_proto generic
 _supported_os Linux
 
Signature · 1 line
1.8.5.3
#2 lore raw
In reply to Stefan Hajnoczi
Quoted 5 lines · Stefan Hajnoczi

The 071 test is designed for IMGFMT=qcow2 because it uses the l2_load blkdebug event. Its output filtering also assumes that IMGFMT is not raw since 071.out contains "format=raw" but IMGFMT=raw would filter the output to "format=IMGFMT".

Quoted 7 lines

Perhaps the test case can be rewritten to be more generic, but for now let's document that it was only supposed to work with qcow2.

---
 tests/qemu-iotests/071 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan