Skip to content

Commit

Permalink
TEST-25-IMPORT: Skip if importctl not installed
Browse files Browse the repository at this point in the history
machinectl import-* was split out into importctl
which is a separately configurable component to machinectl
and might not always be available.
  • Loading branch information
richardmaw-codethink committed Apr 26, 2024
1 parent 60d064d commit dcb17e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/units/testsuite-25.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcb17e3

Please sign in to comment.