Commit 7c932a1d authored by Max Reitz's avatar Max Reitz Committed by Kevin Wolf
Browse files

iotests: Restrict nbd Python tests to nbd



We have two Python unittest-style tests that test NBD.  As such, they
should specify supported_protocols=['nbd'] so they are skipped when the
user wants to test some other protocol.

Furthermore, we should restrict their choice of formats to 'raw'.  The
idea of a protocol/format combination is to use some format over some
protocol; but we always use the raw format over NBD.  It does not really
matter what the NBD server uses on its end, and it is not a useful test
of the respective format driver anyway.

Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 103cbc77
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -287,6 +287,5 @@ class BuiltinNBD(NBDBlockdevAddBase):


if __name__ == '__main__':
    # Need to support image creation
    iotests.main(supported_fmts=['vpc', 'parallels', 'qcow', 'vdi', 'qcow2',
                                 'vmdk', 'raw', 'vhdx', 'qed'])
    iotests.main(supported_fmts=['raw'],
                 supported_protocols=['nbd'])
+2 −1
Original line number Diff line number Diff line
@@ -153,4 +153,5 @@ class TestNbdServerRemove(iotests.QMPTestCase):


if __name__ == '__main__':
    iotests.main(supported_fmts=['generic'])
    iotests.main(supported_fmts=['raw'],
                 supported_protocols=['nbd'])