Skip to contentSkip to conversation

tests: grub_cmd_cryptomount should hard error when pre-requisites are not met

PATCH In review Glenn Washburn 2 participants 2 messages Feb 16, 2023 – Feb 24, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tests/grub_cmd_cryptomount.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/grub_cmd_cryptomount.in +3 -3
index b05cd3800e..4578ab7093 100644
@@ -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"'
Signature · 1 line
2.34.1