From: Andrei Borzenkov Date: Sat, 7 Nov 2015 20:42:35 +0000 (+0300) Subject: partmap_test: check that parted is available X-Git-Tag: 2.02-beta3~192 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c054020581c3cf998930cc021cd7a569691bcf9f;p=thirdparty%2Fgrub.git partmap_test: check that parted is available Skip test if parted is unavailable instead of returning false failure. --- diff --git a/tests/partmap_test.in b/tests/partmap_test.in index 7786ccfbc..4230ba228 100644 --- a/tests/partmap_test.in +++ b/tests/partmap_test.in @@ -92,6 +92,12 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in disk=hd0 ;; esac + +if ! which parted >/dev/null 2>&1; then + echo "parted not installed; cannot test partmap" + exit 77 +fi + imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 outfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1