bbc6a8998a
Signed-off-by: Peter Jones <pjones@redhat.com>
134 lines
3.6 KiB
Diff
134 lines
3.6 KiB
Diff
From 5a0c548ba388b343b0bb6d2a38888e7eac5bbb96 Mon Sep 17 00:00:00 2001
|
|
From: Vladimir Serbinenko <phcoder@gmail.com>
|
|
Date: Mon, 23 Jan 2017 03:47:13 +0300
|
|
Subject: [PATCH 002/192] Remove bashisms from tests.
|
|
|
|
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
|
|
index a459353e8..0d8162e98 100644
|
|
--- 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
|
|
index e7e625701..7e9ab86aa 100644
|
|
--- 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
|
|
index c594ae3fc..2f518dd9e 100644
|
|
--- 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
|
|
index eb362aa24..05b8f6b73 100644
|
|
--- 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
|
|
index 6269891c9..49ae8a9c8 100644
|
|
--- 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
|
|
index 3fb15e35c..0e8d645eb 100644
|
|
--- 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
|
|
index c8cc26376..b32f24466 100644
|
|
--- 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
|
|
index 2765b61ac..63b60a2ea 100644
|
|
--- 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
|
|
index e46401c4c..2b7829568 100644
|
|
--- 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
|
|
index e780924ef..aa9645835 100644
|
|
--- 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
|
|
index d5ef7f9ea..80ebdc59f 100644
|
|
--- 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
|
|
--
|
|
2.13.4
|
|
|