diff mbox

iotests: remove LUKS support from test 226

Message ID 20180712221208.3732-1-jsnow@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

John Snow July 12, 2018, 10:12 p.m. UTC
This test doesn't actually care about the format anyway, it just
supports "all formats" as a convenience. LUKS however does not use a
simple image filename which confuses this iotest.

We can simply remove the LUKS "support" and be happier for it.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 tests/qemu-iotests/226 | 2 ++
 1 file changed, 2 insertions(+)

Comments

Kevin Wolf July 13, 2018, 7:09 a.m. UTC | #1
Am 13.07.2018 um 00:12 hat John Snow geschrieben:
> This test doesn't actually care about the format anyway, it just
> supports "all formats" as a convenience. LUKS however does not use a
> simple image filename which confuses this iotest.
> 
> We can simply remove the LUKS "support" and be happier for it.
> 
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
>  tests/qemu-iotests/226 | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226
> index 460aea2fc9..ebfaf62e53 100755
> --- a/tests/qemu-iotests/226
> +++ b/tests/qemu-iotests/226
> @@ -40,7 +40,9 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
>  . ./common.pattern
>  
>  # Generic format, but tests file-protocol specific error handling
> +# LUKS does not use a simple filename; this test doesn't use the format anyway.
>  _supported_fmt generic
> +_unsupported_fmt luks
>  _supported_proto file
>  _supported_os Linux

Maybe it would be better to test for $IMGOPTSSYNTAX = "true", because
that's the real problem here?

Kevin
John Snow July 13, 2018, 5:06 p.m. UTC | #2
On 07/13/2018 03:09 AM, Kevin Wolf wrote:
> Am 13.07.2018 um 00:12 hat John Snow geschrieben:
>> This test doesn't actually care about the format anyway, it just
>> supports "all formats" as a convenience. LUKS however does not use a
>> simple image filename which confuses this iotest.
>>
>> We can simply remove the LUKS "support" and be happier for it.
>>
>> Signed-off-by: John Snow <jsnow@redhat.com>
>> ---
>>  tests/qemu-iotests/226 | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226
>> index 460aea2fc9..ebfaf62e53 100755
>> --- a/tests/qemu-iotests/226
>> +++ b/tests/qemu-iotests/226
>> @@ -40,7 +40,9 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
>>  . ./common.pattern
>>  
>>  # Generic format, but tests file-protocol specific error handling
>> +# LUKS does not use a simple filename; this test doesn't use the format anyway.
>>  _supported_fmt generic
>> +_unsupported_fmt luks
>>  _supported_proto file
>>  _supported_os Linux
> 
> Maybe it would be better to test for $IMGOPTSSYNTAX = "true", because
> that's the real problem here?
> 
> Kevin
> 

Oh, OK. I didn't know about that var.
diff mbox

Patch

diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226
index 460aea2fc9..ebfaf62e53 100755
--- a/tests/qemu-iotests/226
+++ b/tests/qemu-iotests/226
@@ -40,7 +40,9 @@  trap "_cleanup; exit \$status" 0 1 2 3 15
 . ./common.pattern
 
 # Generic format, but tests file-protocol specific error handling
+# LUKS does not use a simple filename; this test doesn't use the format anyway.
 _supported_fmt generic
+_unsupported_fmt luks
 _supported_proto file
 _supported_os Linux