Skip to content

Commit 3119f2d

Browse files
committed
tests: when creating RAM disks in machines tests use less size
1 parent b5f72ff commit 3119f2d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/verify/check-machines-create

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class TestMachinesCreate(VirtualMachinesCase):
354354
runner = TestMachinesCreate.CreateVmRunner(self)
355355
config = TestMachinesCreate.TestCreateConfig
356356

357-
dev = self.add_ram_disk()
357+
dev = self.add_ram_disk(1)
358358
partition = dev.split('/')[2] + "1"
359359
cmds = [
360360
"virsh pool-define-as poolDisk disk - - {0} - {1}".format(dev, os.path.join(self.vm_tmpdir, "poolDiskImages")),

test/verify/check-machines-disks

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ class TestMachinesDisks(VirtualMachinesCase):
502502
b = self.browser
503503
m = self.machine
504504

505-
dev = self.add_ram_disk()
505+
dev = self.add_ram_disk(2)
506506
used_targets = ['vda']
507507

508508
args = self.createVm("subVmTest1")
@@ -528,7 +528,7 @@ class TestMachinesDisks(VirtualMachinesCase):
528528
pool_name='pool-disk',
529529
pool_type='disk',
530530
volume_name=partition,
531-
volume_size=10,
531+
volume_size=1,
532532
volume_size_unit='MiB',
533533
expected_target=get_next_free_target(used_targets)[-1],
534534
).execute()

test/verify/check-machines-storage-pools

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ class TestMachinesStoragePools(VirtualMachinesCase):
444444
).execute()
445445

446446
# Prepare a disk with gpt partition table to test the disk storage pool type
447-
dev = self.add_ram_disk()
447+
dev = self.add_ram_disk(2)
448448
m.execute("parted %s mklabel gpt" % dev)
449449

450450
StoragePoolCreateDialog(
@@ -521,7 +521,7 @@ class TestMachinesStoragePools(VirtualMachinesCase):
521521
self.addCleanup(m.execute, "virsh pool-destroy nfs-pool || true") # Destroy pool as it block removal of `nfs_pool`
522522

523523
# Prepare disk/block pool
524-
dev = self.add_ram_disk()
524+
dev = self.add_ram_disk(10)
525525
cmds = [
526526
"virsh pool-define-as disk-pool disk - - {0} - {1}".format(dev, os.path.join(self.vm_tmpdir, "poolDiskImages")),
527527
"virsh pool-build disk-pool --overwrite",
@@ -671,7 +671,7 @@ class TestMachinesStoragePools(VirtualMachinesCase):
671671
pool_name="disk-pool",
672672
pool_type="disk",
673673
vol_name=dev.split("/")[-1] + "1", # Partition names must follow pattern of sda1, sda2...
674-
size="10", # Only 50MiB available on disk-pool
674+
size="2", # Only 10MiB available on disk-pool
675675
unit="MiB",
676676
format="none",
677677
remove=True,
@@ -694,7 +694,7 @@ class TestMachinesStoragePools(VirtualMachinesCase):
694694
self,
695695
pool_name="lvm-pool",
696696
vol_name="lvm_vol",
697-
size="20",
697+
size="4",
698698
format="",
699699
remove=True,
700700
).execute()

0 commit comments

Comments
 (0)