mirror of https://github.com/xemu-project/xemu.git
iotests: Use self.image_len in TestRepairQuorum
041's TestRepairQuorum has its own image_len, no need to refer to TestSingleDrive. (This patch allows commenting out TestSingleDrive to speed up 041 during test testing.) Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20200218103454.296704-18-mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
c351afd6f3
commit
89e2194524
|
@ -872,7 +872,7 @@ class TestRepairQuorum(iotests.QMPTestCase):
|
||||||
# Add each individual quorum images
|
# Add each individual quorum images
|
||||||
for i in self.IMAGES:
|
for i in self.IMAGES:
|
||||||
qemu_img('create', '-f', iotests.imgfmt, i,
|
qemu_img('create', '-f', iotests.imgfmt, i,
|
||||||
str(TestSingleDrive.image_len))
|
str(self.image_len))
|
||||||
# Assign a node name to each quorum image in order to manipulate
|
# Assign a node name to each quorum image in order to manipulate
|
||||||
# them
|
# them
|
||||||
opts = "node-name=img%i" % self.IMAGES.index(i)
|
opts = "node-name=img%i" % self.IMAGES.index(i)
|
||||||
|
|
Loading…
Reference in New Issue