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 0/6] Various test fixes proposed by Thomas Schmitt
Date: Mon, 3 Mar 2025 02:12:00 -0600 [thread overview]
Message-ID: <cover.1740988397.git.development@efficientek.com> (raw)
Thomas Schmitt proposed variations on these fixes[1]. I've broken his
patch into several patches with improvements.
Glenn
[1] https://lore.kernel.org/all/9956308756800479343@scdbackup.webframe.org/
v2:
* Add patch #2 to allow grub-shell-luks-tester to cleanup properly on expected
failure.
* Add patch #5 to remove empty directories left by the cryptomount tests.
Glenn Washburn (5):
tests/util/grub-shell-luks-tester: Add missing line to create RET
variable in cleanup
tests: Cleanup generated files on expected failure in
grub_cmd_cryptomount
tests/grub_cmd_cryptomount: Cleanup the cryptsetup script unless debug
is enabled
tests/grub_cmd_cryptomount: Default TMPDIR to /tmp
tests/util/grub-shell: Remove the work directory on successful run and
debug is not on
Thomas Schmitt (1):
tests/grub_cmd_cryptomount: Remove temporary directories if successful
and debug is not on
tests/grub_cmd_cryptomount.in | 18 ++++++++++++++++--
tests/util/grub-shell-luks-tester.in | 7 ++++++-
tests/util/grub-shell.in | 1 +
3 files changed, 23 insertions(+), 3 deletions(-)
Range-diff against v1:
1: 50ea280aa138 = 1: e686c1848ab1 tests/util/grub-shell-luks-tester: Add missing line to create RET variable in cleanup
-: ------------ > 2: f94ebf9f040e tests: Cleanup generated files on expected failure in grub_cmd_cryptomount
2: 4d8fca393bfd ! 3: 1d1faee928cf tests: Cleaup the cryptsetup script in grub_cmd_cryptomount unless debug is enabled
@@ Metadata
Author: Glenn Washburn <development@efficientek.com>
## Commit message ##
- tests: Cleaup the cryptsetup script in grub_cmd_cryptomount unless debug is enabled
+ tests/grub_cmd_cryptomount: Cleanup the cryptsetup script unless debug is enabled
This fixes an issue where the grub_cmd_cryptomount test leaves a file
with an ambiguous name in the / directory when TMPDIR is not set.
3: e32175b06be6 ! 4: 5f1b424919b2 tests: Default TMPDIR to /tmp in grub_cmd_cryptomount tests
@@ Metadata
Author: Glenn Washburn <development@efficientek.com>
## Commit message ##
- tests: Default TMPDIR to /tmp in grub_cmd_cryptomount tests
+ tests/grub_cmd_cryptomount: Default TMPDIR to /tmp
This fixes behavior where grub_cmd_cryptomount temporary files, which are
some times not cleaned up, are left in the / directory. Set TMPDIR if your
@@ tests/grub_cmd_cryptomount.in: _testcase() {
+ TMPDIR=${_TMPDIR}/`echo -n "$(date +%s).${LOGPREFIX}" | sed -e 's,[ /],_,g' -e 's,:$,,g'`
+ export TMPDIR
mkdir -p "$TMPDIR"
+ set -- "$@" $([ "${EXPECTEDRES}" -eq 1 ] && echo "--xfail")
- output=`"$@" 2>&1` || res=$?
-: ------------ > 5: 779233064126 tests/grub_cmd_cryptomount: Remove temporary directories if successful and debug is not on
4: 6ef75566e50b = 6: e9fc44e07539 tests/util/grub-shell: Remove the work directory on successful run and debug is not on
--
2.34.1
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next 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 Glenn Washburn [this message]
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 ` [PATCH v2 6/6] tests/util/grub-shell: Remove the work directory on successful run " Glenn Washburn
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=cover.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.