All of lore.kernel.org
 help / color / mirror / Atom feed
From: Glenn Washburn <development@efficientek.com>
To: grub-devel@gnu.org, Daniel Kiper <dkiper@net-space.pl>
Cc: "Thomas Schmitt" <scdbackup@gmx.net>,
	Glenn Washburn <development@efficientek.com>
Subject: [PATCH v2 6/6] tests/util/grub-shell: Remove the work directory on successful run and debug is not on
Date: Mon,  3 Mar 2025 02:12:06 -0600	[thread overview]
Message-ID: <e9fc44e07539977fbe7eacbec28a67b1f7043a41.1740988397.git.development@efficientek.com> (raw)
In-Reply-To: <cover.1740988397.git.development@efficientek.com>

This removes alot 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>
---
 tests/util/grub-shell.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
index 15c5f45a5c30..af3d31ef4609 100644
--- a/tests/util/grub-shell.in
+++ b/tests/util/grub-shell.in
@@ -715,6 +715,7 @@ test -n "$debug" || rm -f "${isofile}"
 test -n "$debug" || rm -rf "${rom_directory}"
 test -n "$debug" || rm -f "${tmpfile}" "${cfgfile}" "${goutfile}"
 test -n "$debug" || rm -f "$work_directory/run.sh"
+test -n "$debug" || rmdir "$work_directory"
 
 exit $ret
 
-- 
2.34.1


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

  parent reply	other threads:[~2025-03-03  8:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-03  8:12 [PATCH v2 0/6] Various test fixes proposed by Thomas Schmitt Glenn Washburn
2025-03-03  8:12 ` [PATCH v2 1/6] tests/util/grub-shell-luks-tester: Add missing line to create RET variable in cleanup Glenn Washburn
2025-03-03  8:12 ` [PATCH v2 2/6] tests: Cleanup generated files on expected failure in grub_cmd_cryptomount Glenn Washburn
2025-03-03  8:12 ` [PATCH v2 3/6] tests/grub_cmd_cryptomount: Cleanup the cryptsetup script unless debug is enabled Glenn Washburn
2025-03-03  8:12 ` [PATCH v2 4/6] tests/grub_cmd_cryptomount: Default TMPDIR to /tmp Glenn Washburn
2025-03-03  8:12 ` [PATCH v2 5/6] tests/grub_cmd_cryptomount: Remove temporary directories if successful and debug is not on Glenn Washburn
2025-03-03  8:12 ` Glenn Washburn [this message]
2025-03-04  9:56 ` [PATCH v2 0/6] Various test fixes proposed by Thomas Schmitt Thomas Schmitt via Grub-devel
2025-03-16  5:34   ` Glenn Washburn
2025-03-10 15:28 ` Daniel Kiper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e9fc44e07539977fbe7eacbec28a67b1f7043a41.1740988397.git.development@efficientek.com \
    --to=development@efficientek.com \
    --cc=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=scdbackup@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.