OSDN Git Service

iotests: remove LUKS support from test 226
authorJohn Snow <jsnow@redhat.com>
Fri, 13 Jul 2018 17:37:21 +0000 (13:37 -0400)
committerKevin Wolf <kwolf@redhat.com>
Mon, 23 Jul 2018 14:50:43 +0000 (16:50 +0200)
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 skip the test for formats that use IMGOPTSSYNTAX for
their filenames without missing much coverage.

Signed-off-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/226

index 460aea2..34987d4 100755 (executable)
@@ -41,6 +41,9 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
 
 # Generic format, but tests file-protocol specific error handling
 _supported_fmt generic
+if [ "$IMGOPTSSYNTAX" = "true" ]; then
+    _unsupported_fmt $IMGFMT
+fi
 _supported_proto file
 _supported_os Linux