Skip to content

Commit 52d3f3e

Browse files
committed
resize/test-virt-resize.pl: Make partitions larger in the test
Sometimes the test would fail with the error below. By making the partitions and the shrink size larger we should be able to avoid this. $ ./test-virt-resize.pl --seed=16193061 seed: 16193061 partition type: gpt nr partitions: 1 expand: 0 no extra part: 0 source format: raw target format: qcow2 filesystem: lvm LV expand: partition 1: sda1 lvm shrink lvcreate: Volume group "VG" has insufficient free space (63 extents): 64 required. at ./test-virt-resize.pl line 282.
1 parent b8c08dc commit 52d3f3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

resize/test-virt-resize.pl

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@
6464
$| = 1;
6565

6666
# The size of each partition, in MB and sectors.
67-
my $part_size_mb = 512;
67+
my $part_size_mb = 1024;
6868
my $part_size_sectors = 1024 * 1024 * $part_size_mb / 512;
6969

70-
my $expand_target_size_mb = 800;
71-
my $shrink_target_size_mb = 260;
70+
my $expand_target_size_mb = 1200;
71+
my $shrink_target_size_mb = 400;
7272

7373
# Create the handle.
7474
my $g = Sys::Guestfs->new ();

0 commit comments

Comments
 (0)