]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: grub_cmd_cryptomount should hard error when pre-requisites are not met
authorGlenn Washburn <development@efficientek.com>
Thu, 16 Feb 2023 07:08:21 +0000 (01:08 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 28 Feb 2023 12:09:51 +0000 (13:09 +0100)
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 <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/grub_cmd_cryptomount.in

index b05cd3800ef75d8cf2345b50ddabc98fbabceef9..4578ab7093c3aa238344de19611e78cf2bfebca2 100644 (file)
@@ -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"'