mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user