All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests: grub_cmd_cryptomount should hard error when pre-requisites are not met
@ 2023-02-16  7:08 Glenn Washburn
  2023-02-24 15:20 ` Daniel Kiper
  0 siblings, 1 reply; 2+ messages in thread
From: Glenn Washburn @ 2023-02-16  7:08 UTC (permalink / raw)
  To: grub-devel, Daniel Kiper; +Cc: Glenn Washburn

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>
---
 tests/grub_cmd_cryptomount.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/grub_cmd_cryptomount.in b/tests/grub_cmd_cryptomount.in
index b05cd3800e..4578ab7093 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"'
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tests: grub_cmd_cryptomount should hard error when pre-requisites are not met
  2023-02-16  7:08 [PATCH] tests: grub_cmd_cryptomount should hard error when pre-requisites are not met Glenn Washburn
@ 2023-02-24 15:20 ` Daniel Kiper
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kiper @ 2023-02-24 15:20 UTC (permalink / raw)
  To: Glenn Washburn; +Cc: grub-devel

On Thu, Feb 16, 2023 at 01:08:21AM -0600, Glenn Washburn wrote:
> 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>

Daniel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-24 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-16  7:08 [PATCH] tests: grub_cmd_cryptomount should hard error when pre-requisites are not met Glenn Washburn
2023-02-24 15:20 ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.