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
63f1a98
Subject: [PATCH 002/250] 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
ec4acbb
index a459353e8a5..0d8162e98b0 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
ec4acbb
index e7e62570115..7e9ab86aabb 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
ec4acbb
index c594ae3fc14..2f518dd9e34 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
ec4acbb
index eb362aa2439..05b8f6b73fa 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
ec4acbb
index 6269891c9ee..49ae8a9c830 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
ec4acbb
index 3fb15e35c8a..0e8d645eb6b 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
ec4acbb
index c8cc2637633..b32f2446659 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
ec4acbb
index 2765b61acbb..63b60a2ea06 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
ec4acbb
index e46401c4c9f..2b782956838 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
ec4acbb
index e780924ef7b..aa96458355b 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
ec4acbb
index d5ef7f9ea62..80ebdc59fd5 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
-- 
63f1a98
2.14.3
bc092b9