* [PATCH] tests/util/grub-shell-luks-tester: Do not remove generated files when test fails to allow debugging
@ 2023-08-14 20:00 Glenn Washburn
2023-08-17 17:54 ` Daniel Kiper
0 siblings, 1 reply; 2+ messages in thread
From: Glenn Washburn @ 2023-08-14 20:00 UTC (permalink / raw)
To: grub-devel, Daniel Kiper; +Cc: Glenn Washburn
Signed-off-by: Glenn Washburn <development@efficientek.com>
---
tests/util/grub-shell-luks-tester.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/util/grub-shell-luks-tester.in b/tests/util/grub-shell-luks-tester.in
index 850a20d6a7a8..3f9d1be17644 100644
--- a/tests/util/grub-shell-luks-tester.in
+++ b/tests/util/grub-shell-luks-tester.in
@@ -145,7 +145,9 @@ cleanup() {
if [ -e "$luksdev" ]; then
cryptsetup close "$luksdev"
fi
- [ -z "$debug" ] && rm -rf "$lukstestdir" || :
+ if [ -z "$debug" ] && [ "${RET:-1}" -eq 0 ]; then
+ rm -rf "$lukstestdir" || :
+ fi
}
trap cleanup EXIT INT TERM KILL QUIT
--
2.34.1
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] tests/util/grub-shell-luks-tester: Do not remove generated files when test fails to allow debugging
2023-08-14 20:00 [PATCH] tests/util/grub-shell-luks-tester: Do not remove generated files when test fails to allow debugging Glenn Washburn
@ 2023-08-17 17:54 ` Daniel Kiper
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Kiper @ 2023-08-17 17:54 UTC (permalink / raw)
To: Glenn Washburn; +Cc: grub-devel
On Mon, Aug 14, 2023 at 03:00:10PM -0500, Glenn Washburn wrote:
> Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-17 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-14 20:00 [PATCH] tests/util/grub-shell-luks-tester: Do not remove generated files when test fails to allow debugging Glenn Washburn
2023-08-17 17:54 ` 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.