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