From 50bd1fc4c223230169873255eeb9de10b40467e9 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Tue, 4 Nov 2025 19:14:44 -0500 Subject: [PATCH] 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 --- tests/gdisk/test-expand-gpt.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/gdisk/test-expand-gpt.pl b/tests/gdisk/test-expand-gpt.pl index 5c77247c0..0ce7dc4ec 100755 --- a/tests/gdisk/test-expand-gpt.pl +++ b/tests/gdisk/test-expand-gpt.pl @@ -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 ();