Skip to content

Commit

Permalink
Merge pull request #20707 from tinawang123/disksize
Browse files Browse the repository at this point in the history
Openqa cannot resize powerVM disk size since it is not QEMU backend
  • Loading branch information
rfan1 authored Dec 10, 2024
2 parents fc97a31 + b41148a commit a01f1ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/microos/image_checks.pm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ use strict;
use warnings;
use testapi;
use version_utils qw(is_microos is_sle_micro is_jeos is_leap_micro);
use Utils::Backends 'is_pvm';
use Utils::Architectures qw(is_aarch64);

sub run {
Expand All @@ -25,7 +26,8 @@ sub run {

# Verify that openQA resized the disk image
my $disksize = script_output "sfdisk --show-size /dev/$disk";
die "Disk not bigger than the default size, got $disksize KiB" unless $disksize > (20 * 1024 * 1024);
# openQA cannot resize powerVM disk image since it is not QEMU backend, skip the check here, see poo#167986
die "Disk not bigger than the default size, got $disksize KiB" unless ($disksize > (20 * 1024 * 1024) || is_pvm);

# Verify that the GPT has no errors (PMBR mismatch, backup GPT not at the end)
# by looking for nonempty stderr.
Expand Down

0 comments on commit a01f1ca

Please sign in to comment.