From: Glenn Washburn Date: Thu, 16 Feb 2023 07:08:21 +0000 (-0600) Subject: tests: grub_cmd_cryptomount should hard error when pre-requisites are not met X-Git-Tag: grub-2.12-rc1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b367d9ff61e4873f5b6ababc026f81345a8776;p=thirdparty%2Fgrub.git tests: grub_cmd_cryptomount should hard error when pre-requisites are not met Tests should be SKIP'd only when they do not apply to a particular target. Hard errors are for when the test should run but can not be setup properly. Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper --- diff --git a/tests/grub_cmd_cryptomount.in b/tests/grub_cmd_cryptomount.in index b05cd3800..4578ab709 100644 --- a/tests/grub_cmd_cryptomount.in +++ b/tests/grub_cmd_cryptomount.in @@ -22,17 +22,17 @@ fi if [ "$EUID" != 0 ] ; then echo "not root; cannot test cryptomount." - exit 77 + exit 99 fi if ! which cryptsetup >/dev/null 2>&1; then echo "cryptsetup not installed; cannot test cryptomount." - exit 77 + exit 99 fi if ! which mkfs.vfat >/dev/null 2>&1; then echo "mkfs.vfat not installed; cannot test cryptomount." - exit 77 + exit 99 fi COMMON_OPTS='${V:+--debug=$V} --cs-opts="--pbkdf-force-iterations 1000"'