From: Vladimir Serbinenko Date: Mon, 23 Jan 2017 00:47:13 +0000 (+0300) Subject: Remove bashisms from tests. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=470511748d011db03a3cf616bcf51276e7056223;p=thirdparty%2Fgrub.git Remove bashisms from tests. Those tests don't actually need bash. Just use common shebang. --- diff --git a/tests/grub_cmd_date.in b/tests/grub_cmd_date.in index a459353e8..b14d55db7 100644 --- a/tests/grub_cmd_date.in +++ b/tests/grub_cmd_date.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ set -e . "@builddir@/grub-core/modinfo.sh" diff --git a/tests/grub_cmd_regexp.in b/tests/grub_cmd_regexp.in index e7e625701..6520bd6d7 100644 --- a/tests/grub_cmd_regexp.in +++ b/tests/grub_cmd_regexp.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ set -e # Run GRUB script in a Qemu instance diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in index c594ae3fc..aac120a6c 100644 --- a/tests/grub_cmd_set_date.in +++ b/tests/grub_cmd_set_date.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ set -e . "@builddir@/grub-core/modinfo.sh" diff --git a/tests/grub_cmd_sleep.in b/tests/grub_cmd_sleep.in index eb362aa24..a5e72614b 100644 --- a/tests/grub_cmd_sleep.in +++ b/tests/grub_cmd_sleep.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ set -e . "@builddir@/grub-core/modinfo.sh" diff --git a/tests/grub_cmd_test.in b/tests/grub_cmd_test.in index 6269891c9..3399eb292 100644 --- a/tests/grub_cmd_test.in +++ b/tests/grub_cmd_test.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ # create a randome file empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1 diff --git a/tests/grub_cmd_tr.in b/tests/grub_cmd_tr.in index 3fb15e35c..bed469c03 100644 --- a/tests/grub_cmd_tr.in +++ b/tests/grub_cmd_tr.in @@ -1,4 +1,4 @@ -#! /bin/bash -e +#! @BUILD_SHEBANG@ -e # Run GRUB script in a Qemu instance # Copyright (C) 2010 Free Software Foundation, Inc. diff --git a/tests/grub_func_test.in b/tests/grub_func_test.in index c8cc26376..c67f9e422 100644 --- a/tests/grub_func_test.in +++ b/tests/grub_func_test.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ set -e . "@builddir@/grub-core/modinfo.sh" diff --git a/tests/grub_script_blockarg.in b/tests/grub_script_blockarg.in index 2765b61ac..6ea9b8c3d 100644 --- a/tests/grub_script_blockarg.in +++ b/tests/grub_script_blockarg.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ # Run GRUB script in a Qemu instance # Copyright (C) 2010 Free Software Foundation, Inc. diff --git a/tests/grub_script_expansion.in b/tests/grub_script_expansion.in index e46401c4c..9d0dcdd29 100644 --- a/tests/grub_script_expansion.in +++ b/tests/grub_script_expansion.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ set -e # Run GRUB script in a Qemu instance diff --git a/tests/help_test.in b/tests/help_test.in index e780924ef..b08cf2013 100644 --- a/tests/help_test.in +++ b/tests/help_test.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ set -e . "@builddir@/grub-core/modinfo.sh" diff --git a/tests/test_sha512sum.in b/tests/test_sha512sum.in index d5ef7f9ea..027092a8b 100644 --- a/tests/test_sha512sum.in +++ b/tests/test_sha512sum.in @@ -1,4 +1,4 @@ -#! /bin/bash +#! @BUILD_SHEBANG@ # create a randome file file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1