From: Richard Maw Date: Wed, 24 Apr 2024 11:16:37 +0000 (+0100) Subject: TEST-25-IMPORT: Skip if importctl not installed X-Git-Tag: v256-rc2~188^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcb17e3295dfce1a9a9f4fb648c4750c05d3c46d;p=thirdparty%2Fsystemd.git TEST-25-IMPORT: Skip if importctl not installed machinectl import-* was split out into importctl which is a separately configurable component to machinectl and might not always be available. --- diff --git a/test/units/testsuite-25.sh b/test/units/testsuite-25.sh index b298c506e12..24b02cedcf6 100755 --- a/test/units/testsuite-25.sh +++ b/test/units/testsuite-25.sh @@ -3,6 +3,11 @@ set -eux set -o pipefail +if ! command -v importctl >/dev/null; then + echo "importctl is not available to be chain-loaded from machinectl, skipping" >>/skipped + exit 77 +fi + export SYSTEMD_PAGER=cat dd if=/dev/urandom of=/var/tmp/testimage.raw bs=$((1024*1024+7)) count=5