diff mbox

[PATCHv6,6/6] qemu-iotests: blacklist test 020 for NFS protocol

Message ID 1389608518-4813-7-git-send-email-pl@kamp.de
State New
Headers show

Commit Message

Peter Lieven Jan. 13, 2014, 10:21 a.m. UTC
reopening is currently not supported.

Signed-off-by: Peter Lieven <pl@kamp.de>
---
 tests/qemu-iotests/020 |    5 +++++
 1 file changed, 5 insertions(+)

Comments

Fam Zheng Jan. 15, 2014, 6:27 a.m. UTC | #1
On Mon, 01/13 11:21, Peter Lieven wrote:
> reopening is currently not supported.
> 
> Signed-off-by: Peter Lieven <pl@kamp.de>
> ---
>  tests/qemu-iotests/020 |    5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020
> index a42f32f..f8a849c 100755
> --- a/tests/qemu-iotests/020
> +++ b/tests/qemu-iotests/020
> @@ -46,6 +46,11 @@ _supported_fmt qcow qcow2 vmdk qed
>  _supported_proto file
>  _supported_os Linux
>  
> +# NFS does not support bdrv_reopen_prepare thus qemu-img commit fails.
> +if [ "$IMGPROTO" = "nfs" ]; then
> +    _notrun "image protocol $IMGPROTO does not support bdrv_commit"
> +fi
> +

Doesn't "_supported_proto file" above already skip this case?

Fam
Peter Lieven Jan. 15, 2014, 7:02 a.m. UTC | #2
On 15.01.2014 07:27, Fam Zheng wrote:
> On Mon, 01/13 11:21, Peter Lieven wrote:
>> reopening is currently not supported.
>>
>> Signed-off-by: Peter Lieven <pl@kamp.de>
>> ---
>>   tests/qemu-iotests/020 |    5 +++++
>>   1 file changed, 5 insertions(+)
>>
>> diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020
>> index a42f32f..f8a849c 100755
>> --- a/tests/qemu-iotests/020
>> +++ b/tests/qemu-iotests/020
>> @@ -46,6 +46,11 @@ _supported_fmt qcow qcow2 vmdk qed
>>   _supported_proto file
>>   _supported_os Linux
>>   
>> +# NFS does not support bdrv_reopen_prepare thus qemu-img commit fails.
>> +if [ "$IMGPROTO" = "nfs" ]; then
>> +    _notrun "image protocol $IMGPROTO does not support bdrv_commit"
>> +fi
>> +
> Doesn't "_supported_proto file" above already skip this case?
>
> Fam
You are right, the proto should be generic and just NFS should be blacklisted.

Peter
diff mbox

Patch

diff --git a/tests/qemu-iotests/020 b/tests/qemu-iotests/020
index a42f32f..f8a849c 100755
--- a/tests/qemu-iotests/020
+++ b/tests/qemu-iotests/020
@@ -46,6 +46,11 @@  _supported_fmt qcow qcow2 vmdk qed
 _supported_proto file
 _supported_os Linux
 
+# NFS does not support bdrv_reopen_prepare thus qemu-img commit fails.
+if [ "$IMGPROTO" = "nfs" ]; then
+    _notrun "image protocol $IMGPROTO does not support bdrv_commit"
+fi
+
 TEST_OFFSETS="0 4294967296"
 
 _make_test_img 6G