From: Andrew Hamilton Date: Sat, 21 Jun 2025 15:50:38 +0000 (-0500) Subject: tests/util/grub-shell: Correct netboot and file_filter test failure X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2539ede82a0d98654ae235d250fb987c8dea70c6;p=thirdparty%2Fgrub.git tests/util/grub-shell: Correct netboot and file_filter test failure Correct a test failure in netboot_test and file_filter_test caused by an issue cleaning up the tmp directory created for netboot. Netboot creates a subdirectory in the tmp folder that causes the rmdir to fail - so cleanup the subdirectory first. Fixes: 1d59f39b5f1b (tests/util/grub-shell: Remove the work directory on successful run and debug is not on) Signed-off-by: Andrew Hamilton Tested-by: Leo Sandoval Reviewed-by: Daniel Kiper --- diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index 8baa3667a..2a874a85d 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -711,6 +711,9 @@ elif [ x$boot = xemu ]; then test -n "$debug" || rm -rf "$rootdir" test -n "$debug" || rm -f "$roottar" fi +if [ x$boot = xnet ]; then + test -n "$debug" || rm -rf "$work_directory/netdir" +fi test -n "$debug" || rm -f "${isofile}" test -n "$debug" || rm -rf "${rom_directory}" test -n "$debug" || rm -f "${tmpfile}" "${cfgfile}" "${goutfile}"