tests/util/grub-shell: Remove the work directory on successful run and debug is not on

This removes a lot of empty grub-shell working directories in the TMPDIR directory.

Signed-off-by: Thomas Schmitt <scdbackup@gmx.net>
Signed-off-by: Glenn Washburn <development@efficientek.com>
Tested-by: Thomas Schmitt <scdbackup@gmx.net>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Glenn Washburn 2025-03-03 02:12:06 -06:00 committed by Daniel Kiper
parent e0116f3bd5
commit 1d59f39b5f

View File

@ -715,6 +715,7 @@ test -n "$debug" || rm -f "${isofile}"
test -n "$debug" || rm -rf "${rom_directory}" test -n "$debug" || rm -rf "${rom_directory}"
test -n "$debug" || rm -f "${tmpfile}" "${cfgfile}" "${goutfile}" test -n "$debug" || rm -f "${tmpfile}" "${cfgfile}" "${goutfile}"
test -n "$debug" || rm -f "$work_directory/run.sh" test -n "$debug" || rm -f "$work_directory/run.sh"
test -n "$debug" || rmdir "$work_directory"
exit $ret exit $ret