tests/util/grub-shell-luks-tester: Do not remove generated files when test fails to allow debugging
PATCH 1/1 tests/util/grub-shell-luks-tester: Do not remove generated files when test fails to allow debugging
Signed-off-by Glenn Washburn <[email protected]>
--- tests/util/grub-shell-luks-tester.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
tests/util/grub-shell-luks-tester.in +3 -1
@@ -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
Signature · 7 lines
2.34.1 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
Quoted 1 line · Glenn Washburn
Signed-off-by Glenn Washburn <[email protected]>
Reviewed-by Daniel Kiper <[email protected]>
Daniel
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel