tests: gdisk: skip if sgdisk not found on host

really what we need is sgdisk in the appliance, but for test suite
purposes this check is enough IMO

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2025-11-04 19:14:44 -05:00
parent 005e701b77
commit 50bd1fc4c2

View File

@@ -25,6 +25,11 @@ if ($ENV{SKIP_TEST_EXPAND_GPT_PL}) {
exit 77;
}
if (system ("sgdisk --help >/dev/null 2>&1") != 0) {
print "$0: test skipped because sgdisk program not found\n";
exit 77
}
sub tests {
my $g = Sys::Guestfs->new ();