From: Glenn Washburn Date: Wed, 13 Oct 2021 00:39:57 +0000 (-0500) Subject: tests: Add set -e to missing tests X-Git-Tag: grub-2.12-rc1~557 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e0a8129eff822ab2a0515b58aefa94ada61b23d;p=thirdparty%2Fgrub.git tests: Add set -e to missing tests This helps to ensure that error codes do not get ignored. Signed-off-by: Glenn Washburn Reviewed-by: Daniel Kiper --- diff --git a/tests/grub_cmd_test.in b/tests/grub_cmd_test.in index 3399eb292..dac6f7d6a 100644 --- a/tests/grub_cmd_test.in +++ b/tests/grub_cmd_test.in @@ -1,4 +1,5 @@ #! @BUILD_SHEBANG@ +set -e # create a randome file empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 diff --git a/tests/grub_script_blockarg.in b/tests/grub_script_blockarg.in index 6ea9b8c3d..134a43b05 100644 --- a/tests/grub_script_blockarg.in +++ b/tests/grub_script_blockarg.in @@ -1,4 +1,5 @@ #! @BUILD_SHEBANG@ +set -e # Run GRUB script in a Qemu instance # Copyright (C) 2010 Free Software Foundation, Inc. diff --git a/tests/test_sha512sum.in b/tests/test_sha512sum.in index 027092a8b..d97b7ae2c 100644 --- a/tests/test_sha512sum.in +++ b/tests/test_sha512sum.in @@ -1,4 +1,5 @@ #! @BUILD_SHEBANG@ +set -e # create a randome file file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1