bc092b
From 5a0c548ba388b343b0bb6d2a38888e7eac5bbb96 Mon Sep 17 00:00:00 2001
bc092b
From: Vladimir Serbinenko <phcoder@gmail.com>
bc092b
Date: Mon, 23 Jan 2017 03:47:13 +0300
31cddd
Subject: [PATCH] Remove bashisms from tests.
bc092b
bc092b
Those tests don't actually need bash. Just use common shebang.
bc092b
---
bc092b
 tests/grub_cmd_date.in         | 2 +-
bc092b
 tests/grub_cmd_regexp.in       | 2 +-
bc092b
 tests/grub_cmd_set_date.in     | 2 +-
bc092b
 tests/grub_cmd_sleep.in        | 2 +-
bc092b
 tests/grub_cmd_test.in         | 2 +-
bc092b
 tests/grub_cmd_tr.in           | 2 +-
bc092b
 tests/grub_func_test.in        | 2 +-
bc092b
 tests/grub_script_blockarg.in  | 2 +-
bc092b
 tests/grub_script_expansion.in | 2 +-
bc092b
 tests/help_test.in             | 2 +-
bc092b
 tests/test_sha512sum.in        | 2 +-
bc092b
 11 files changed, 11 insertions(+), 11 deletions(-)
bc092b
bc092b
diff --git a/tests/grub_cmd_date.in b/tests/grub_cmd_date.in
ec4acb
index a459353e8a5..0d8162e98b0 100644
bc092b
--- a/tests/grub_cmd_date.in
bc092b
+++ b/tests/grub_cmd_date.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 set -e
bc092b
 
bc092b
 . "@builddir@/grub-core/modinfo.sh"
bc092b
diff --git a/tests/grub_cmd_regexp.in b/tests/grub_cmd_regexp.in
ec4acb
index e7e62570115..7e9ab86aabb 100644
bc092b
--- a/tests/grub_cmd_regexp.in
bc092b
+++ b/tests/grub_cmd_regexp.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 set -e
bc092b
 
bc092b
 # Run GRUB script in a Qemu instance
bc092b
diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in
ec4acb
index c594ae3fc14..2f518dd9e34 100644
bc092b
--- a/tests/grub_cmd_set_date.in
bc092b
+++ b/tests/grub_cmd_set_date.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 set -e
bc092b
 
bc092b
 . "@builddir@/grub-core/modinfo.sh"
bc092b
diff --git a/tests/grub_cmd_sleep.in b/tests/grub_cmd_sleep.in
ec4acb
index eb362aa2439..05b8f6b73fa 100644
bc092b
--- a/tests/grub_cmd_sleep.in
bc092b
+++ b/tests/grub_cmd_sleep.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 set -e
bc092b
 
bc092b
 . "@builddir@/grub-core/modinfo.sh"
bc092b
diff --git a/tests/grub_cmd_test.in b/tests/grub_cmd_test.in
ec4acb
index 6269891c9ee..49ae8a9c830 100644
bc092b
--- a/tests/grub_cmd_test.in
bc092b
+++ b/tests/grub_cmd_test.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 
bc092b
 # create a randome file
bc092b
 empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
bc092b
diff --git a/tests/grub_cmd_tr.in b/tests/grub_cmd_tr.in
ec4acb
index 3fb15e35c8a..0e8d645eb6b 100644
bc092b
--- a/tests/grub_cmd_tr.in
bc092b
+++ b/tests/grub_cmd_tr.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash -e
bc092b
+#! /bin/sh -e
bc092b
 
bc092b
 # Run GRUB script in a Qemu instance
bc092b
 # Copyright (C) 2010  Free Software Foundation, Inc.
bc092b
diff --git a/tests/grub_func_test.in b/tests/grub_func_test.in
ec4acb
index c8cc2637633..b32f2446659 100644
bc092b
--- a/tests/grub_func_test.in
bc092b
+++ b/tests/grub_func_test.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 set -e
bc092b
 
bc092b
 . "@builddir@/grub-core/modinfo.sh"
bc092b
diff --git a/tests/grub_script_blockarg.in b/tests/grub_script_blockarg.in
ec4acb
index 2765b61acbb..63b60a2ea06 100644
bc092b
--- a/tests/grub_script_blockarg.in
bc092b
+++ b/tests/grub_script_blockarg.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 
bc092b
 # Run GRUB script in a Qemu instance
bc092b
 # Copyright (C) 2010  Free Software Foundation, Inc.
bc092b
diff --git a/tests/grub_script_expansion.in b/tests/grub_script_expansion.in
ec4acb
index e46401c4c9f..2b782956838 100644
bc092b
--- a/tests/grub_script_expansion.in
bc092b
+++ b/tests/grub_script_expansion.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 set -e
bc092b
 
bc092b
 # Run GRUB script in a Qemu instance
bc092b
diff --git a/tests/help_test.in b/tests/help_test.in
ec4acb
index e780924ef7b..aa96458355b 100644
bc092b
--- a/tests/help_test.in
bc092b
+++ b/tests/help_test.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 set -e
bc092b
 
bc092b
 . "@builddir@/grub-core/modinfo.sh"
bc092b
diff --git a/tests/test_sha512sum.in b/tests/test_sha512sum.in
ec4acb
index d5ef7f9ea62..80ebdc59fd5 100644
bc092b
--- a/tests/test_sha512sum.in
bc092b
+++ b/tests/test_sha512sum.in
bc092b
@@ -1,4 +1,4 @@
bc092b
-#! /bin/bash
bc092b
+#! /bin/sh
bc092b
 
bc092b
 # create a randome file
bc092b
 file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1