bc092b9
From 5a0c548ba388b343b0bb6d2a38888e7eac5bbb96 Mon Sep 17 00:00:00 2001
bc092b9
From: Vladimir Serbinenko <phcoder@gmail.com>
bc092b9
Date: Mon, 23 Jan 2017 03:47:13 +0300
bc092b9
Subject: [PATCH 002/176] Remove bashisms from tests.
bc092b9
bc092b9
Those tests don't actually need bash. Just use common shebang.
bc092b9
---
bc092b9
 tests/grub_cmd_date.in         | 2 +-
bc092b9
 tests/grub_cmd_regexp.in       | 2 +-
bc092b9
 tests/grub_cmd_set_date.in     | 2 +-
bc092b9
 tests/grub_cmd_sleep.in        | 2 +-
bc092b9
 tests/grub_cmd_test.in         | 2 +-
bc092b9
 tests/grub_cmd_tr.in           | 2 +-
bc092b9
 tests/grub_func_test.in        | 2 +-
bc092b9
 tests/grub_script_blockarg.in  | 2 +-
bc092b9
 tests/grub_script_expansion.in | 2 +-
bc092b9
 tests/help_test.in             | 2 +-
bc092b9
 tests/test_sha512sum.in        | 2 +-
bc092b9
 11 files changed, 11 insertions(+), 11 deletions(-)
bc092b9
bc092b9
diff --git a/tests/grub_cmd_date.in b/tests/grub_cmd_date.in
bc092b9
index a459353e8..0d8162e98 100644
bc092b9
--- a/tests/grub_cmd_date.in
bc092b9
+++ b/tests/grub_cmd_date.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 set -e
bc092b9
 
bc092b9
 . "@builddir@/grub-core/modinfo.sh"
bc092b9
diff --git a/tests/grub_cmd_regexp.in b/tests/grub_cmd_regexp.in
bc092b9
index e7e625701..7e9ab86aa 100644
bc092b9
--- a/tests/grub_cmd_regexp.in
bc092b9
+++ b/tests/grub_cmd_regexp.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 set -e
bc092b9
 
bc092b9
 # Run GRUB script in a Qemu instance
bc092b9
diff --git a/tests/grub_cmd_set_date.in b/tests/grub_cmd_set_date.in
bc092b9
index c594ae3fc..2f518dd9e 100644
bc092b9
--- a/tests/grub_cmd_set_date.in
bc092b9
+++ b/tests/grub_cmd_set_date.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 set -e
bc092b9
 
bc092b9
 . "@builddir@/grub-core/modinfo.sh"
bc092b9
diff --git a/tests/grub_cmd_sleep.in b/tests/grub_cmd_sleep.in
bc092b9
index eb362aa24..05b8f6b73 100644
bc092b9
--- a/tests/grub_cmd_sleep.in
bc092b9
+++ b/tests/grub_cmd_sleep.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 set -e
bc092b9
 
bc092b9
 . "@builddir@/grub-core/modinfo.sh"
bc092b9
diff --git a/tests/grub_cmd_test.in b/tests/grub_cmd_test.in
bc092b9
index 6269891c9..49ae8a9c8 100644
bc092b9
--- a/tests/grub_cmd_test.in
bc092b9
+++ b/tests/grub_cmd_test.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 
bc092b9
 # create a randome file
bc092b9
 empty="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
bc092b9
diff --git a/tests/grub_cmd_tr.in b/tests/grub_cmd_tr.in
bc092b9
index 3fb15e35c..0e8d645eb 100644
bc092b9
--- a/tests/grub_cmd_tr.in
bc092b9
+++ b/tests/grub_cmd_tr.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash -e
bc092b9
+#! /bin/sh -e
bc092b9
 
bc092b9
 # Run GRUB script in a Qemu instance
bc092b9
 # Copyright (C) 2010  Free Software Foundation, Inc.
bc092b9
diff --git a/tests/grub_func_test.in b/tests/grub_func_test.in
bc092b9
index c8cc26376..b32f24466 100644
bc092b9
--- a/tests/grub_func_test.in
bc092b9
+++ b/tests/grub_func_test.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 set -e
bc092b9
 
bc092b9
 . "@builddir@/grub-core/modinfo.sh"
bc092b9
diff --git a/tests/grub_script_blockarg.in b/tests/grub_script_blockarg.in
bc092b9
index 2765b61ac..63b60a2ea 100644
bc092b9
--- a/tests/grub_script_blockarg.in
bc092b9
+++ b/tests/grub_script_blockarg.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 
bc092b9
 # Run GRUB script in a Qemu instance
bc092b9
 # Copyright (C) 2010  Free Software Foundation, Inc.
bc092b9
diff --git a/tests/grub_script_expansion.in b/tests/grub_script_expansion.in
bc092b9
index e46401c4c..2b7829568 100644
bc092b9
--- a/tests/grub_script_expansion.in
bc092b9
+++ b/tests/grub_script_expansion.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 set -e
bc092b9
 
bc092b9
 # Run GRUB script in a Qemu instance
bc092b9
diff --git a/tests/help_test.in b/tests/help_test.in
bc092b9
index e780924ef..aa9645835 100644
bc092b9
--- a/tests/help_test.in
bc092b9
+++ b/tests/help_test.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 set -e
bc092b9
 
bc092b9
 . "@builddir@/grub-core/modinfo.sh"
bc092b9
diff --git a/tests/test_sha512sum.in b/tests/test_sha512sum.in
bc092b9
index d5ef7f9ea..80ebdc59f 100644
bc092b9
--- a/tests/test_sha512sum.in
bc092b9
+++ b/tests/test_sha512sum.in
bc092b9
@@ -1,4 +1,4 @@
bc092b9
-#! /bin/bash
bc092b9
+#! /bin/sh
bc092b9
 
bc092b9
 # create a randome file
bc092b9
 file="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 1
bc092b9
-- 
bc092b9
2.13.0
bc092b9