Skip to content

Various test fixes proposed by Thomas Schmitt

Glenn Washburn grub-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 3 repliesIn review
  2. v14 patches 11 repliesSuperseded

Changes in v2 from the cover letter

* 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.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tests/util/grub-shell-luks-tester: Add missing line to create RET variable in cleanuptests/util/grub-shell-luks-tester.in+1 -00 replies
2/6tests: Cleanup generated files on expected failure in grub_cmd_cryptomounttests/grub_cmd_cryptomount.in tests/util/grub-shell-luks-tester.in+6 -10 replies
3/6tests/grub_cmd_cryptomount: Cleanup the cryptsetup script unless debug is enabledtests/grub_cmd_cryptomount.in+3 -00 replies
4/6tests/grub_cmd_cryptomount: Default TMPDIR to /tmptests/grub_cmd_cryptomount.in+3 -20 replies
5/6tests/grub_cmd_cryptomount: Remove temporary directories if successful and debug is not ontests/grub_cmd_cryptomount.in+9 -00 replies
6/6tests/util/grub-shell: Remove the work directory on successful run and debug is not ontests/util/grub-shell.in+1 -00 replies

Reviews trailers per patch

None of the 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchThomas SchmittDaniel Kiper
SeriesT-b R-b R-b R-b R-b R-b
1/6
2/6
3/6
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] Various test fixes proposed by Thomas Schmitt

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/[email protected]/

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 <[email protected]>

## 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 <[email protected]>

## 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
Signature · 7 lines
2.34.1


_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel