From 50320c093abe29dfa5adc349529128425bade56a Mon Sep 17 00:00:00 2001 From: Glenn Washburn Date: Mon, 3 Mar 2025 02:12:01 -0600 Subject: [PATCH] tests/util/grub-shell-luks-tester: Add missing line to create RET variable in cleanup Set the RET variable to the exit status of the script, as was assumed in the cleanup() function. Reported-by: Thomas Schmitt Signed-off-by: Glenn Washburn Tested-by: Thomas Schmitt Reviewed-by: Daniel Kiper --- tests/util/grub-shell-luks-tester.in | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/util/grub-shell-luks-tester.in b/tests/util/grub-shell-luks-tester.in index 7cfb60b51..e695b9435 100644 --- a/tests/util/grub-shell-luks-tester.in +++ b/tests/util/grub-shell-luks-tester.in @@ -132,6 +132,7 @@ fi # Make sure that the dm-crypto device is shutdown cleanup() { + RET=$? if [ -e "$luksdev" ]; then cryptsetup close "$luksdev" fi